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

后端 未结 10 1389
甜味超标
甜味超标 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条回答
  •  -上瘾入骨i
    2020-11-28 11:19

    You can (as of phonegap 1.5.0) use :

    Click Me
    

    This should cause phonegap to launch the native browser.

    I think what user868766 was referring to was that for the above to work you need the external url to be on the whitelist. The app I have been working on opened the source of news stories in the native browser so we used * in the whitelist to ensure we didnt rule out any sources.

    Hope that helps.

提交回复
热议问题