I want to open an external page in the InAppBrowser or childbrowser, where I don't show any toolbar and where I can have a button in my externalpage that closes the browser and returns to the app from where I opened the browser. So how to close when you don ́t have a DONE button? I have seen that if I have var ref = window.open(encodeURI(url), '_self', 'location=yes'); then it is possible to close the browser with ref.close(); but if I use that in the externalpage that I opened it doesn't work, it is not closing the browser?
Is there any way to autorotate any of them if I have set the orientation to portrait in the config file? I know that you can autorotate the child browser if you do it manually, not through the build service. Or do I have to set the orientation to both?
I have tested all different ways to open the ChildBrowser and the InAppBrowser and I cant really see any big difference between them? Can the InAppBrowser use native feature wile the ChildBrowser can't or?
相关问题
- InAppBrowser Allow-Navigation ONLY MY DOMAIN when
- Adding Custom Parameter - Phonegap Build
- InAppBrowser plugin for Cordova/Phonegap — window.
- How to show AdMob banner in inappbrowser using Cor
- Disable Android/iOS Keyboard on specific Input Fie
相关文章
- Phonegap/Cordova 3.6 - Download of file through bl
- InAppBrowser not being called in Phonegap 3.1.0
- PhoneGap: Device orientation under iOS
- Childbrowser plugin in Phonegap 1.7 can open only
- Phonegap 3.0 InAppBrowser - Provides no way for us
- Cordova check if file in url exists
- InAppBrowser executeScript callback not firing at
- Change Widget ID or Package Name for android/iOS p
Here's a simpler solution that may help someone.
OK, problem 1 to close is solved. This is what I use to open an external page in the InAppBrowser. From the page that I load in the InAppBrowser, I can close the InAppBrowser itself, returning to my app from where I opened the browser.
Create a page on your server - closeInAppBrowser.html that is just an empty html page, it doesn´t do anything
I open the browser with this:
And to close the InAppBrowser from the page that I opened in the browser(http://www.mypage.asp) I have a button-link like this.
I hope it helps somebody else!