如何检查从TestFlight或App Store启动的应用程序?

时间:2018-04-27 15:37:09

标签: ios launching-application

我想检查我的应用是否是从TestFlight应用或AppStore应用中打开的。

我进行了测试,并在didFinishLaunchingWithOptions启动时在TestFlight中找到了此信息:

if launchOptions?[UIApplicationLaunchOptionsKey.sourceApplication] as? String == "com.apple.TestFlight" {
    // ...
}

但我不知道如何检查应用程序是否已从AppStore打开。什么是标识符?

感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

App Store iOS应用的捆绑标识符为com.apple.AppStore