gpt4 book ai didi

iphone - 我如何检测我的应用程序已从游戏中心推送通知启动

转载 作者:行者123 更新时间:2023-11-29 11:10:52 25 4
gpt4 key购买 nike

我正在测试在 Game Center 中运行的应用程序。当应用程序从图标启动时,如果应用程序是从 Game Center 启动的(从 Game Center 应用程序或作为 friend 邀请的目标),我有一个我想避免的序言。我正在检查我的 appDelegate 中的 launchOptions,如下所示;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

NSLog(@"%sThe launch options are %@", __PRETTY_FUNCTION__, launchOptions);
if (launchOptions != nil) {

[[KYTGlobals instance] setQuickStart:YES];
}

...

当应用程序由 Game Center 启动时,这工作正常,但当它通过 friend 邀请启动时,启动选项变量为 NIL;

在 Provisioning 门户中,我为开发启用了推送通知,但没有为生产启用。

有什么线索吗?

最佳答案

我决定将此提交给 Apple 支持,但不幸的是,答案是该功能不受支持,因为这需要 UIKit 对 GameKit 有一定的了解,从而导致跨框架依赖。我被要求将其作为错误提交。

关于iphone - 我如何检测我的应用程序已从游戏中心推送通知启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11634665/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com