从 TestFlight 应用程序下载行为 [英] Downloading from TestFlight app behavior

查看:60
本文介绍了从 TestFlight 应用程序下载行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近向 Apple 的 TestFlight 提交了一个应用.我注意到在下载应用程序并启动应用程序时,预期的流程会发生变化.我以前见过这种情况,发布版本与调试的优化级别不同,优化期间的一些错误导致使用 Swift 时的不同行为(我认为是在 Swift 1 期间,我现在是最新的 Swift 2).

I recently submitted an app to Apple's TestFlight. I noticed that on downloading the app and launching the app, the expected flow would change. I've seen this happen before where the optimization level is different for release builds vs debug and some error during optimization results in different behavior when using Swift (I think it was during Swift 1, I'm now up to date with Swift 2).

我尝试导出 AdHoc 和 App Store Distribution 并直接安装到手机上,以查看是否可以重现不良流程,但不能.

I tried exporting for AdHoc and App Store Distribution and installing directly to a phone to see if I could reproduce the bad flow, but could not.

错误的流正在执行与预期不同的 segue.

The errant flow is performing a different segue than expected.

推荐答案

原来的错误流与我为从推送通知打开应用程序定义的流相同.我只有一种推送通知被触发的情况,所以我认为我不需要任何逻辑来检查收到了什么推送.

Turns out the bad flow was the same flow I defined for opening the app from a push notification. I only have one situation where a push notification is triggered, so I didn't think I needed any logic to check what push was being received.

似乎如果使用 Apple 的 TestFlight 应用程序,在下载所需的应用程序并从 TestFlight 中选择打开"后,应用程序的 application:didFinishLaunchingWithOptions: 委托方法将被调用并设置启动选项.我只检查launchOptions 是否存在,而不是检查启动选项是否包含UIApplicationLaunchOptionsRemoteNotificationKey.如果应用程序在 TestFlight 之外打开(即返回主屏幕),则不会调用该方法.我还没有验证 TestFlight 的触发器中有哪些类型的信息可用,但我添加了逻辑来识别我的推送通知.

It seems that if using Apple's TestFlight app, after downloading a desired app and selecting "Open" from within TestFlight, the app's application:didFinishLaunchingWithOptions: delegate method is called with launch options set. I was checking only for the existence of launchOptions, instead of checking that the launch options included UIApplicationLaunchOptionsRemoteNotificationKey. If the app is opened outside of TestFlight (ie go back to the home screen), the method is not called. I haven't yet verified what sort of information is available in the trigger from TestFlight, but I added logic to identify my push notifications.

这篇关于从 TestFlight 应用程序下载行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆