You have the wrong method signature so your method is never called. There is no openURL:
parameter. You want:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// your code here
}
That is called when you app is started from scratch.
To handle your app being called from another app or being sent a URL, you need to implement the following:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
// process URL here
}
Please read the docs for UIApplicationDelegate
as well as the related app life cycle docs.