How can I open an external link in Safari not the app's UIWebView?

后端 未结 10 1434
甜味超标
甜味超标 2020-11-28 10:47

I have a Phonegap (cordova) application where I want to load some external webpages within the phonegap WebView and I have other external webpages that I want to load in saf

10条回答
  •  盖世英雄少女心
    2020-11-28 11:12

    Tested on cordova 2.4 + iOS

    use "_system" and no need to update any configuration

    http://docs.phonegap.com/en/2.3.0/cordova_inappbrowser_inappbrowser.md.html#InAppBrowser

    target: the target to load the URL in (String) (Optional, Default: "_self")

    _self - opens in the Cordova WebView if url is in the white-list, else it opens in the InAppBrowser _blank - always open in the InAppBrowser _system - always open in the system web browser

提交回复
热议问题