inappbrowser

External links in phonegap app do not open well

时间秒杀一切 提交于 2019-11-27 18:52:19
So I have a phonegap project with Phonegap 2.9.0 and building with PhonegapBuild. I got external links in my app, that I would like to open inapp or using the default device browser outside of my app. I am ok for both solutions. Today my app open links inapp but it goes fullscreen, no zoom possible, and no button to come back in the app... I am trying to figure out a solution for days, and looking at the same kind of questions here but nothing work good. Could somebody explain clearly what is all this stuff about, and what are the different choices/params because I can tell that it is not

Phonegap build - Open external page in InAppBrowser or childbrowser with no toolbar and close it?

こ雲淡風輕ζ 提交于 2019-11-27 12:55:57
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

How can I get the cordova InAppBrowser to provide a way for the user to close the browser when using an Android device?

依然范特西╮ 提交于 2019-11-27 10:24:04
问题 I'm using the cordova InAppBrowser to display content from an external site in my app. When I open the browser on an iPhone, there are some buttons at the bottom of the InAppBrowser for closing it or navigating back and forth. The InAppBrowser on an Android device has no such buttons and has no obvious way for the user to close the browser. I know how to programmatically close the InAppBrowser, but how can the user close it when using an Android device? I know the user can hit the hardware

Show a website inside an ionic tab

依然范特西╮ 提交于 2019-11-27 06:38:57
问题 I am working on an ionic framework based mobile application (mainly targeted for Android). My project is a tab based application. In the first tab I want to load an external website, but I can't figure it out how to do it. I tried ngCordova InAppBrowser, but it takes full screen and my navigation tabs fall behind. I also tried loading an iFrame and it works in simulator, but this solution do not work at all on android devices and show an empty iFrame (beside its positioning limits that I

PhoneGap: Open external link in default browser (outside the app)

孤者浪人 提交于 2019-11-27 02:32:40
问题 I'm trying to open links in Safari (on an iPhone) from a PhoneGap application. I'm using PhoneGap version 3.1.0, and use PhoneGap Build, to build the application. I have two links on the page (shown below in www/index.html). Both links open inside the PhoneGap application. I can see that PhoneGap is loaded correctly, because alert('device ready!'); is triggered. What do I need to change, to open the links in the default browser (outside the app)? The www/config.xml file looks like this: <?xml

Cordova, why would InAppBrowser plugin be required to open links in system browser

淺唱寂寞╮ 提交于 2019-11-26 22:30:14
I have a Cordova app, it is a single page application with a single HTML file. All links should open in the system browser. I don't want an "embedded" InAppBrowser but really the native system / external browser. Everywhere we can find example of code using InAppBrowser with something like: window.open('http://apache.org', '_system'); But why do we need to install InAppBrowser, even if we don't even plan to use an embedded browser? Can someone really expain what is supposed to be the behavior of a WebView, regarding the target of a link. It is not clear what it is supposed to do with a target=

Phonegap InAppBrowser display pdf 2.7.0

99封情书 提交于 2019-11-26 16:10:25
I want to display an external PDF with the phonegap InAppBrowser in Android, but it isn´t working. This is my JS code: <script> function openPDF() { var ref = window.open('http://www.i-drain.net/userfiles/file/einbauanleitung_iboard.pdf', '_blank', 'location=yes'); ref.addEventListener('loadstart', function(event) { alert('start: ' + event.url); }); ref.addEventListener('loadstop', function(event) { alert('stop: ' + event.url); }); ref.addEventListener('loaderror', function(event) { alert('error: ' + event.message); }); ref.addEventListener('exit', function(event) { alert(event.type); }); } <

Phonegap build - Open external page in InAppBrowser or childbrowser with no toolbar and close it?

放肆的年华 提交于 2019-11-26 16:09:51
问题 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

Phonegap InAppBrowser display pdf 2.7.0

此生再无相见时 提交于 2019-11-26 04:42:41
问题 I want to display an external PDF with the phonegap InAppBrowser in Android, but it isn´t working. This is my JS code: <script> function openPDF() { var ref = window.open(\'http://www.i-drain.net/userfiles/file/einbauanleitung_iboard.pdf\', \'_blank\', \'location=yes\'); ref.addEventListener(\'loadstart\', function(event) { alert(\'start: \' + event.url); }); ref.addEventListener(\'loadstop\', function(event) { alert(\'stop: \' + event.url); }); ref.addEventListener(\'loaderror\', function