I use a URL scheme to open my app and parse the query string from the URL in -didFinishLaunchingWithOptions:. This works great, but it doesn’t parse the new string when the app becomes active. I have implemented the -handleOpenURL: and openURL methods as follows, but neither seems to be called when the app becomes active…
-(BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
{
if (!url)
return NO;
queryStrings = [self parseQueryString:[url query]];
return YES;
}
-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
if (!url)
return NO;
queryStrings = [self parseQueryString:[url query]];
return YES;
}
Please help! Thanks!
Use:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotationThe method you’re using is deprecated.