Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on Android #27

Open
guirip opened this issue Jan 29, 2018 · 1 comment
Open

Crashes on Android #27

guirip opened this issue Jan 29, 2018 · 1 comment

Comments

@guirip
Copy link

guirip commented Jan 29, 2018

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:

@mrHassanRaza
Copy link

https://github.com/PolarCape/polarcape-cordova-plugin-document-handler
This plugins branch is 56 commits ahead of ti8m:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants