Opening a local PDF - android

I'm working on an Ionic2 app, building simultaneously for both Android and iOS. My app requires a PDF, stored on the device to be opened. I have the PDF stored in my www folder and I'm using the InAppBrowser plugin to open the same. This works perfectly fine on iOS, but it does not on Android, as it throws up an error saying the application does not have write permissions.
Any help on this would be appreciated.

Related

Android MS-Office files opening issue

I want to open XLS,DOC, and PPT files inside android application using android studio without using any external app , this app should works in offline mode.
I searched a lot on internet. but did't get any solution for that.

Download base64 file cordova android (via javascript)

I have a Website(ReactJs) with a pdf download functionality(via base64) and it works fine. For Android, I have a cordova app where the app is pointed to website and no actual app code resides inside cordova and this is where the problem starts.
The PDF download is not working in app and I have been restricted from using native java code or Cordova(js + file-plugin).
Is there any way to achieve this with given constraints?

'ng2-pdf-viewer' not working for local pdf in iOS with Ionic 3

I am using ng2-pdf-viewer in Ionic application to view PDF, it is perfectly working with Android but giving issue in iOS.
I am passing file URL as 'assets/doc/sample.pdf'. Not throwing any event like error, progress, rendered etc.
External URL is working perfectly in iOS

How web crawler works in Android written in python3?

web-crawler written in python3, webdriver.Firefox() or webdriver.Chrome(Path) allows to open the browser and extract something. But, what if this crawler (written in python) exported to Android either using Kivy or using some other way Will .apk file work? Will the browser will open there too? In .apk file, we cannot not allow to open the browser. Then how the web-crawler will work? Any other solution except headless browsing that can work in android application ?

How to open pdf file with in our app android+phonegap+JQM?

I am developing an web+cross platform app using Jquery Mobile+PhoneGap+Android. In web app, I am able to open pdf file links within my app page using iframe. But, in Phonegap generated Android build, iframe is unable to render pdf content,it is showing that iframe area as empty.How can I display the pdf file/content, whose src I know at runtime, within android webview. Thanks In Advance.
I've just published my plugin, which can open almost any type of file, which is stored locally on Android device.
Please take a look at: https://github.com/markeeftb/FileOpener
Plugin opens external application which handles the preview of the document.

Categories

Resources