Question

Hey stackoverflow fellows,

I recently tried to implement the Smart App Banners from Apple.
They work but, I'm not able the get app-argument data in my App.
The App runs on iOS 5, 6, & 7 but I tried iOS 6 & 7 only, too.
Here's my code for the Banner:

<meta name="apple-itunes-app" content="app-id=688798564, app-argument=http://app.heimwerker.de/2" />


This is my implementation:

-(BOOL)application:(UIApplication*)application openURL:(NSURL*)url sourceApplication:NSString*)sourceApplication annotation:(id)annotation{
NSLog(@"URL: %@",url.absoluteString);

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle: nil];
ReadViewController *dest = [storyboard instantiateViewControllerWithIdentifier:@"ReadVC"];
NSNumberFormatter *format = [[NSNumberFormatter alloc] init];
dest.uid = [format numberFromString: url.absoluteString];
[[[UIAlertView alloc] initWithTitle:@"Smart App" message:url.absoluteString delegate:nil cancelButtonTitle:@"Abbrechen" otherButtonTitles:nil]show];


return YES;

}


This method is never called. I don't know why.

Was it helpful?

Solution

This is a reported iOS7 bug. Have a look at the open bug report It should work on iOS6 though

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top