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

后端 未结 10 1394
甜味超标
甜味超标 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:14

    if you want to open an external url in safari, I think this is useful:
    This is the %100 guaranteed solution if you are using phonegap - Tested in ios6.
    to open external url in safari do following:

    1-add your link in External Host (white list). e.g http://google.com
    2-in Cordova.plist or Phonegap.plist, change "OpenAllWhitelistURLsInWebView" from "Yes" to "No"
    3-in your application add (target="_blank") to your link
    example

        Google.com
    


    Thank you.

提交回复
热议问题