简体   繁体   English

我是否必须做一些特别的事情才能让 TestFlight 构建使用我的通知扩展目标? 它被忽略

[英]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,您需要执行以下操作。

  1. Create a separate ID for your App Extension为您的应用扩展创建一个单独的 ID
  2. Create a separate App Store Distribution provisioning profile and assign it the App Extension's target创建一个单独的 App Store Distribution 配置文件并为其分配 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 目标选择证书。

Distribution Certificate for NSE NSE 分发证书

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以使用Apple Push Notification Service让我的应用执行某些操作而不通知iOS 7中的用户吗 - Can I use Apple Push Notification Service to have my app do something without notifying user in iOS 7 要在 android 中使用推送通知,我是否必须加入开发者计划? - To use push notification in android, do I have to join developer program? 我是否需要加入iOS开发者计划才能通过TestFlight发送我的应用版本? - Do I need to be in the iOS Developer Program to send my app builds through TestFlight? 是否可以在TestFlight上拥有相同应用程序的多个版本? - Is it possible to have multiple builds of the same application on TestFlight? 如何在TestFlight(iTunes Connect)错误中修复此多个版本? - How do I fix this multiple builds in TestFlight (iTunes Connect) bug? 如何从Xcode Bot向TestFlight部署自动构建? - How do I deploy automated builds to TestFlight from an Xcode Bot? 我必须使用按钮吗? - Do I have to use buttons? 我必须使用PresentModalViewController吗? - Do I have to use PresentModalViewController? 在iPhone中,为了支持蓝牙耳机,我必须做点什么吗? - In iPhone, to support bluetooth headphone, do I have to do something? 如何确保我的Xcode UITest Target仅构建目标应用程序? - How do I make sure my Xcode UITest Target Only Builds the Target Application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM