Skip to content

Crashes on Android #27

Description

@guirip

Hello

I tried to open a simple one page PDF file from:

  • external url (e.g basic http://www...../test.pdf)
  • local file using relative path (e.g ./test.pdf)
  • local file using absolute pah (e.g file:///android_asset/www/test.pdf)

Below is the result of tests using [email protected] plugin on android (app built using cordova 7.1.0):

// Android 7 / 8: KO - app instantly crashes
// Android 6: OK
handleDocumentWithURL(function(){ console.info('success'); }, function(){ console.error(arguments); }, EXTERNAL_URL);

// Android 6 / 7 / 8: KO - 1 (undefined error)
handleDocumentWithURL(function(){ console.info('success'); }, function(){ console.error(arguments); }, LOCAL_RELATIVE_PATH);

// Android 6 / 7 / 8: KO - app instantly crashes
handleDocumentWithURL(function(){ console.info('success'); }, function(){ console.error(arguments); }, LOCAL_ABSOLUTE_PATH);

Note: We've used the exact same version of the plugin on an app during summer 2016 (1 year and a half ago) and it is working on Android 6 / 7 / 8, so I suppose this plugin just lacks maintenance to be compatible with recent Cordova versions?

Alternatives:

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions