[英]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.