You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I've tried Mozilla's PDF.js, which is not cordova related but a full javascript library to display PDF files, but I did not managed to come to anything satisfying (no UI, no interaction...), seems very limited.
sitewaerts cordova-plugin-document-viewer requires you to install a third party PDF reader app (developed by sitewaerts)
Hello
I tried to open a simple one page PDF file from:
Below is the result of tests using DocumentHandler@0.2.2 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:
window.open(decodeURI(EXTERNAL_URL), '_system', 'location=no');
The text was updated successfully, but these errors were encountered: