4

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.

Kara
  • 6,115
  • 16
  • 50
  • 57
Sn0wfreeze
  • 1,959
  • 3
  • 18
  • 32

1 Answers1

2

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

arielyz
  • 608
  • 1
  • 5
  • 6
  • Fixed in 7.1, but per the open bug report, there is a related ticket that was opened as well: http://openradar.appspot.com/15776183 – Jason Shah Mar 18 '14 at 15:09
  • @JasonShah Are you sure it is fixed in 7.1? Still can't get it to work (including 7.1.2). – PJC Jul 22 '14 at 09:54