tictacmobile commented on issue #592: URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/592#issuecomment-741999148
Wonderful, Thank you! Kind regards, Carl Zetterberg Den ons 9 dec. 2020 kl 19:50 skrev Fernando Ghisi <[email protected] >: > You can just use the last version of InAppBrowser (4.1.0 for now), and > open the external link* using "cordova.InAppBrowser.open" instead of > "window.open". Also, include the "hidden=yes", like this (it fixed some > problems in iOS): > > cordova.InAppBrowser.open('https://www.google.com/', '_system', > 'hidden=yes,location=yes'); > > *It works also with "mailto", "tel", "whatsapp"... for Android, you just > have to allow the intent and give permissions in config.xml file, like this: > > <access launch-external="yes" origin="tel:*" /> > <access launch-external="yes" origin="mailto:*" /> > <allow-intent href="tel:*" /> > <allow-intent href="sms:*" /> > > Finally, if you want all page loads in your app to go through the > InAppBrowser, you can simply hook "window.open" during initialization: > > $ionicPlatform.ready(function () { > if (ionic.Platform.isWebView()) { > window.open = cordova.InAppBrowser.open; > } > } > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/apache/cordova-plugin-inappbrowser/issues/592#issuecomment-741975596>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AL7HKDR5YMTCVFWGGYVFXWDST7BHPANCNFSM4J2BBNXQ> > . > ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
