Sometimes PhoneGap opens web pages in Safari, sometimes it opens them in its UIWebView, what controls this?
From Does phoneGap support normal web?:
https://github.com/callback/callback-ios/blob/master/PhoneGapLib/Classes/PhoneGapDelegate.m#L669 reveals that:
navigationType == UIWebViewNavigationTypeOther && mainDocument != nil
then it does open Safari.Elaborating on 4:
window.location.href assignment
, or window.open(...)
)mainDocument != nil
signifies that the link is not from an iFrame? and/or doesn't have a target?So basically, I think that only link clicks open in the UIWebView (unless they're gap:// or file:// links, or that policy is set.)