简体   繁体   中英

How to open an external URL in Ionic 2 InAppBrowser?

I use the following Ionic 2 Dropbox code: ionic2-dropbox and I've also tried this tutorial: Integrating Ionic 2 with the Dropbox API both are opening an external browser instead of an actual in-app-browser (_blank) as described here cordova-plugin-inappbrowser . I tried with Nexus 5 and Samsung S4 mini. Both devices open an external browser. Any idea what might be wrong?

If you want to open the page in the internal in-app-browser you need to use the parameter _self instead of _blank.

Hope that helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM