【问题标题】:iPhone Smart App Banners - openUrl not callediPhone 智能应用横幅 - 未调用 openUrl
【发布时间】:2013-10-28 18:38:54
【问题描述】:

嘿,stackoverflow 研究员,

我最近尝试实现 Apple 的 Smart App Banners。
它们可以工作,但是我无法在我的应用程序中获取应用程序参数数据。
该应用程序在 iOS 5、6 和 7 上运行,但我也只尝试了 iOS 6 和 7。
这是我的横幅代码:

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


这是我的实现:

-(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;

}


这个方法永远不会被调用。我不知道为什么。

【问题讨论】:

    标签: ios banner openurl


    【解决方案1】:

    这是一个报告的 iOS7 错误。看看at the open bug report 它应该可以在 iOS6 上运行

    【讨论】:

    • 在 7.1 中修复,但根据打开的错误报告,还有一个相关的票证也被打开:openradar.appspot.com/15776183
    • @JasonShah 你确定它在 7.1 中修复了吗?仍然无法让它工作(包括 7.1.2)。
    猜你喜欢
    • 2013-11-11
    • 2013-06-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多