[英]Do I have to do something special to have TestFlight builds use my Notification Extension target? It's ignored
I added one of the new iOS 10 Notification Service Extensions to my app to present a thumbnail into the push notification received from the server.我在我的应用程序中添加了一个新的iOS 10 通知服务扩展,以在从服务器收到的推送通知中显示缩略图。 (Which includes the mutable content flag)
(其中包括可变内容标志)
It works perfectly in the development/sandbox environment on my test device.它在我的测试设备上的开发/沙盒环境中完美运行。 But when I uploaded it to my testers on TestFlight, it's seemingly completely ignored.
但是当我在 TestFlight 上将它上传给我的测试人员时,它似乎完全被忽略了。 The thumbnail is never displayed, and I even prepend a little bit of text to the body of the notification as well, and that too is not shown.
缩略图从不显示,我什至还在通知正文中添加了一点文本,但也没有显示。
Is there something special I have to do to include that in the TestFlight build?有什么特别的我必须做才能将它包含在 TestFlight 构建中吗? The extension itself is a separate target within the project, obviously, and this is the first one in the app, so do I have to explicitly say "include this"?
很明显,扩展本身是项目中的一个单独目标,这是应用程序中的第一个目标,所以我必须明确说“包括这个”吗?
What am I doing wrong?我做错了什么?
I am assuming that you haven't worked with app extensions before.我假设您以前没有使用过应用扩展。 To distribute an App Extension along with an app through AppStore or TestFlight, you need to do the following.
要通过 AppStore 或 TestFlight 随应用程序一起分发 App Extension,您需要执行以下操作。
You can try building it and distributing it through TestFlight now.您现在可以尝试构建它并通过 TestFlight 分发它。 Feel free to comment if it doesn't work
如果它不起作用,请随时发表评论
you have to make new bundle id and provisioning profile for Notification extension too, when you will publish your app in test flight along with your main target distribution certificate you will find to choose certificate for your Notification Extension target also.您还必须为 Notification 扩展创建新的 bundle id 和配置文件,当您将在测试飞行中发布您的应用程序以及您的主要目标分发证书时,您会发现还为您的 Notification Extension 目标选择证书。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.