Skip to content

In Cordova 3.5, nothing happens if no PDF reader is installed #10

Description

@nitinks78

I implemented the plugin in my Cordova 3.5 based app. It worked successfully when QuickOffice or Adobe PDF Reader installed on my Nexus 7 (Kitkat 4.4.4).

But when I uninstalled both the PDF Readers from the Android device and ran my app, when I clicked the "Open PDF" button, nothing happened. Ideally it should have brought a pop with icons of exisiting apps to "Open With" or throw error of "No PDF reader found".

Why this wildcard does not get called:
else { intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(uri, "/");
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions