I just created an application with bundle identifier 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.
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.
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
. 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?
What should I archieve from Xcode, either App target or extension target?
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.