- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a requirement to open a PDF file from my android app (built using Intel xdk). And would like to know whether I can show the default file opener select message from the app?
I tried this code, but it didn't work. Got an error saying fileOpener is not defined.
window.plugins.fileOpener.open(<<file path>>)
I added the File plugin.
Not sure if I'm missing anything. If you have any insights on this, can you please let me know.
Thanks,
Naga
- Tags:
- HTML5
- Intel® XDK
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Android webviews do not contain a built in pdf viewer by default. You will need to add a 3rd party plugin that can handle PDF files. I have not tried it, but this one looks promising.
https://github.com/sitewaerts/cordova-plugin-document-viewer

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page