Hi all.
Phonegap seems to send the user to Safari if there is an iframe in the
app. Past discussions bring up the following fix:
Change this code
-----
// Check to see if the URL request is for the App URL.
        // If it is not, then launch using Safari
        NSString* urlHost = [url host];
        NSString* appHost = [appURL host];
        NSRange range = [urlHost rangeOfString:appHost
options:NSCaseInsensitiveSearch];
        if (range.location == NSNotFound)
                [[UIApplication sharedApplication] openURL:url];
        NSString * jsCallBack = nil;
        NSArray * parts = [urlString
componentsSeparatedByString:@":"];
-----
To this
// Check to see if the URL request is for the App URL.
        // If it is not, then launch using Safari
        NSString* urlHost = [url host];
        NSString* appHost = [appURL host];
        NSRange range = [urlHost rangeOfString:appHost
options:NSCaseInsensitiveSearch];
        /*
         * We don't have a PhoneGap request, it could be file
         or something else
         */
        if (range.location == NSNotFound) {
        /*              [[UIApplication sharedApplication]
openURL:url]; */
        }
}
        NSString * jsCallBack = nil;
        NSArray * parts = [urlString
componentsSeparatedByString:@":"];
--------
How would one do this in 0.9.0? I'm presently developing only for
iPhone OS, if that matters.
Thanks in advance for any insights.
Best,
Paul Hunt
-- 
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to 
phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to 
www.phonegap.com