Page 1 of 2

no back button in ios version

Posted: Tue Mar 11, 2014 6:47 am
by Kevin Tong

hi,
when I use appery io to create my app which base on html5.
I use window.location.replace("") to open my website.
it is wrapped very well
but when I take the ios version.there is not back button in it.
my website will go to another website,the user can not get back.
is there any solution about this?


no back button in ios version

Posted: Tue Mar 11, 2014 7:22 am
by Maryna Brodina

Hello!
Use InAppBrowser on device. You can open your site in new window or in default device browser. Here is more information http://cordova.apache.org/docs/en/3.0...


no back button in ios version

Posted: Tue Mar 11, 2014 8:22 am
by Alex GG

hi kevin,

I use this to open web sites on same page, then user just click "OK" and closes browser and returns to APP...

window.open("your link here", '_parent');


no back button in ios version

Posted: Tue Mar 11, 2014 8:27 am
by Kevin Tong

I am not quite understand,
is there any way I can add a back button?
I dont wanna modify my website code.


no back button in ios version

Posted: Tue Mar 11, 2014 11:15 am
by Kevin Tong

hi Alex PubliFitness Garcia,

Thanks for ur reply,but where is "OK"?


no back button in ios version

Posted: Tue Mar 11, 2014 3:36 pm
by Alex GG

hi! the OK is part of the child browser...you just have to add the code I gave you (for example on click event to open a link), so when the user clicks on it, a window opens with the web site, and the OK button appears at the bottom...


no back button in ios version

Posted: Wed Mar 12, 2014 4:05 am
by Kevin Tong

thanks,do u use the inappbrowser?is there a example how to use it?


no back button in ios version

Posted: Wed Mar 12, 2014 4:07 am
by Igor

Please take a look at this doc http://docs.appery.io/tutorials/using...


no back button in ios version

Posted: Wed Mar 12, 2014 5:01 am
by Kevin Tong

HI Igor Moroz,is there anyway to use inappbrowser just in JS?


no back button in ios version

Posted: Wed Mar 12, 2014 5:09 am
by Igor

HI Kevin,
Yes, you could find example here: http://docs.phonegap.com/en/3.0.0/cor...