Page 1 of 1

Android open or download PDF in browser

Posted: Sun May 03, 2015 3:16 pm
by felipericcetto

Hi,
I need to be able to open or download PDF file from browser in Android.
In my App I open my website using this:
window.open('a href="http://" rel="nofollow"http:///a...............', '_blank', 'location=no,enableViewportScale=yes');

I cannot use http://docs.google.com/viewer because my website is not public, it requires authentication.

Any other ideas?

Thanks


Android open or download PDF in browser

Posted: Mon May 04, 2015 1:30 am
by Yurii Orishchuk

Hello,

Please try following JS code:

pre

window.open('http://...............', '_system');

/pre

See more here: https://devcenter.appery.io/tutorials...

Regards.


Android open or download PDF in browser

Posted: Mon May 04, 2015 2:25 am
by felipericcetto

Hello,

To clarify, my App has a button that open a login page using: window.open('a href="http://" rel="nofollow"http:///a...............', '_blank', 'location=no,enableViewportScale=yes');

The user authenticates in my login page (browser).

After the user is authenticated, shows up another webpage with some links.

One of them is a link for a PDF file.

So I tried to put "window.open('a href="http://" rel="nofollow"http:///a...............', '_system');" in my webpage but does not work...


Android open or download PDF in browser

Posted: Tue May 05, 2015 6:46 am
by Evgene Karachevtsev

Hello Felipe,

Could you please clarify, do you get any error in a browser console?
Also please look at these links, they may be useful for you:
https://getsatisfaction.com/apperyio/...
https://getsatisfaction.com/apperyio/...
https://getsatisfaction.com/apperyio/...


Android open or download PDF in browser

Posted: Tue May 05, 2015 11:35 am
by felipericcetto

Hello,
This link that you sent was not usefull.

In my case, the link to open the PDF is not in the app, it is in the webpage, as I said before:

My App has a button that open a login page using: window.open('[url=http://...........htm]http://...........htm[/url]', '_blank', 'location=no,enableViewportScale=yes');

The user authenticates in my login page (browser).

After the user is authenticated, shows up another webpage with some links.

One of them is a link for a PDF file (this link is on webpage, not in the app).

When I click in that link (PDF) nothing happens.

How can I see error messages in the browsers app?
I use the app "Appery" on my Android phone.

Thanks


Android open or download PDF in browser

Posted: Fri May 08, 2015 1:49 am
by Yurii Orishchuk

Hello,

It seems inappBrowser could open just one window at one time.

Please try following workflow:

  1. Open first URL in inAppBrowser - to login. Make login there.

  2. Close window (1st step).

  3. Open new window with needed URL.

    Regards.