Page 1 of 1

Open a PDF file using Google docs link

Posted: Mon Jan 13, 2014 4:20 am
by Jim6572278

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,


Open a PDF file using Google docs link

Posted: Mon Jan 13, 2014 4:58 am
by Alena Prykhodko

Open a PDF file using Google docs link

Posted: Mon Jan 13, 2014 3:26 pm
by Jim6572278

Suggested solution works in IOS7 but it fails in Android.


Open a PDF file using Google docs link

Posted: Tue Jan 14, 2014 3:39 am
by Igor

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