PhoneGap: Opening external URL's in Safari

后端 未结 12 870
耶瑟儿~
耶瑟儿~ 2020-11-30 03:04

I\'ve just upgraded to PhoneGap 1.6.1 and I can no longer get external URL\'s to open in Safari.

Prior to this version I had patched AppDelegate.m as follows:

<
12条回答
  •  一整个雨季
    2020-11-30 03:57

    Using Phonegap / Cordova 1.7 I've been able to open URLs in the external Browser in JavaScript just by doing this:

    window.location.href = "http://www.google.com";
    

    I also have OpenAllWhitelistURLsInWebView set to NO in Cordova.plist

提交回复
热议问题