-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I get the following error when trying to share a PDF and the same kind of error when using some of the demo code in my app.
application.android.currentContext.startActivity(android.content.Intent.createChooser(intent, args.intentTitle ? args.intentTitle : 'Open file:'));
VM120:1 Uncaught TypeError: Cannot read property 'startActivity' of undefined
at eval (eval at push.../node_modules/nativescript-share-file/share-file.js.ShareFile.open (share-file.js:26), <anonymous>:1:36)
at ShareFile.push.../node_modules/nativescript-share-file/share-file.js.ShareFile.open (share-file.js:26)
at PdfService.push../app/services/pdf.service.ts.PdfService.share_pdf (pdf.service.ts:49)
at AssetComponent.push../app/assets/asset.component.ts.AssetComponent.sharePdf (asset.component.ts:108)
at Object.eval [as handleEvent] (AssetComponent.html:22)
at handleEvent (core.js:29239)
at callWithDebugContext (core.js:30309)
at Object.debugHandleEvent [as handleEvent] (core.js:30036)
at dispatchEvent (core.js:19859)
at core.js:28448
at renderer.js:241
at ZoneDelegate.push.../node_modules/nativescript-angular/zone-js/dist/zone-nativescript.js.ZoneDelegate.invoke (zone-nativescript.js:388)
at Object.onInvoke (core.js:26256)
at ZoneDelegate.push.../node_modules/nativescript-angular/zone-js/dist/zone-nativescript.js.ZoneDelegate.invoke (zone-nativescript.js:387)
at Zone.push.../node_modules/nativescript-angular/zone-js/dist/zone-nativescript.js.Zone.run (zone-nativescript.js:138)
Metadata
Metadata
Assignees
Labels
No labels