简体   繁体   English

使用推送通知服务扩展上传应用程序

[英]Uploading app with Push Notification Service Extension

I just created an application with bundle identifier com.example.xyz 我刚刚创建了一个包含标识符com.example.xyz的应用程序

and also generated provisioning and certificates for the same. 并且还为其生成了配置和证书。 Now , I needed to use Push Notification Service Extension to use Rich notification So I created new target with name AppNameNotificationService and tried to run the app on device, but it didn't work bcoz the extension target I created have bundle ID com.example.xyzNotificationServie which mismatch with the provisionaning I created for my application. 现在, I needed to use Push Notification Service Extension to use Rich notification所以我创建了名为AppNameNotificationService新目标,并尝试在设备上运行应用程序,但它不起作用bcoz I created have bundle ID com.example.xyzNotificationServie which mismatch的扩展目标I created have bundle ID com.example.xyzNotificationServie which mismatch与我为我的应用程序创建的配置I created have bundle ID com.example.xyzNotificationServie which mismatch

So, what I did is I created new APP ID on developer account with the bundle ID com.example.xyzNotificationServie and generated provisioning for the same. 所以,我所做的是我在开发者帐户上创建了新的APP ID,其中包含com .example.xyzNotificationServie,并为其生成了相应的配置。

Now everything is working fine. 现在一切正常。 i used extension and everything works great. 我使用扩展,一切都很好。 But Rich push notification only works if I run the extension target not with the actual App target . Rich push notification only works if I run the extension target not with the actual App target It's ok as I know every extensions works like this. 没关系,因为我知道每个扩展都是这样的。

But now, I am confused that If I will upload my app on iTC then what should be my app bundle identifier? 但现在,我很困惑,如果我将我的应用程序上传到iTC那么应该是我的应用程序包标识符?

What should I archieve from Xcode, either App target or extension target? 我应该从Xcode获得什么,无论是App目标还是扩展目标?

can anyone help ?? 谁能帮忙?

An app extension is installed with your main app on the device. 应用扩展程序随设备上的主应用程序一起安装。 An app extension is a target we add in our main project. 应用扩展程序是我们在主项目中添加的目标。 An extension is bundled with the main project. 扩展与主项目捆绑在一起。 So your main app id will be used to upload the app with extension to app store. 因此,您的主应用ID将用于将应用扩展到应用商店。

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

相关问题 iOS 中的推送通知服务扩展未执行 - Push Notification Service Extension in iOS is not getting executed iOS推送通知服务扩展不一致工作 - iOS Push Notification Service Extension Not Consistent Work iOS 未调用推送通知服务扩展 (didReceive) - iOS Push notification service extension (didReceive) is not called 是否可以在不使用Notification Service Extension的情况下将图像附加到推送通知中? - Is there a way to attach an image to a push notification without using the Notification Service Extension? Notification Service Extension-关于在推送通知中显示图像的问题 - Notification Service Extension - Issue about showing image on push notification iOS - 通过本地推送通知触发通知服务扩展? - iOS - Trigger Notification Service Extension through Local Push Notification? 在没有通知服务扩展的情况下显示推送通知徽章 - Displaying Push Notification Badges Without Notification Service Extension 如何在后续推送通知中保留通知服务扩展中的变量值 - How to persist a variables value in Notification Service Extension on subsequent push notification 一个应用程序中的多个通知服务扩展 - Multiple Notification Service Extension in one app 从通知服务扩展访问应用程序代码 - Accessing App code from Notification Service Extension
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM