Jim6572278
Posts: 0
Joined: Mon Jan 13, 2014 4:20 am

Open a PDF file using Google docs link

I am trying to open a PDF URL.
After researching I found a solution to open PDF file using google docs.

However, sames syntax does not work for Android and IOS

This Works in IOS but not in Android:
urlpath = "https://docs.google.com/viewer?url=ht...";
window.plugins.childBrowser.showWebPage(urlpath, { showLocationBar: true,showAddress :true});

This works in Android but not in IOS
urlpath = "https://docs.google.com/viewer?url=ht...";
window.open(urlpath,'_system');

Is there any syntax to open a PDF Googledocs URL which works in IOS and Android?
Or is there any easy method to identify if my device is Javascript or Android.

Or is there any other method to open PDF URL files like using installed acrobat app?

Thanks,

Jim6572278
Posts: 0
Joined: Mon Jan 13, 2014 4:20 am

Open a PDF file using Google docs link

Suggested solution works in IOS7 but it fails in Android.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Open a PDF file using Google docs link

What Android version did you use for testing? I've tested on Android it works for me.

Return to “Issues”