I have an app with bundle Id (lets say, my.app.test) which uses Push Capabilities. I have generated necessary SSL certificates for Development and Production distribution and shared them with our Notification Provider.
The Notification Provider uses the APN/HTTP2 interface for publishing notifications and in development environment everything works fine.
I signed my application with App Store distribution cert and hosted it on Test Flight for testing in our Production environment which uses a separate instance of the Notification Provider loaded with Prod SSL certs. However, when publishing notifications, the Notification Provider is reporting HTTP 400 with "Missing Topics" error.
I read the contents of the SSL certificates and see that the Development certificate does not have topic extensions whereas the Production certificates do and these look like :
- my.app.test
- my.app.test.voip
- my.app.test.complication
Questions :
- We do not use VoIP notifications and do not have a watchkit component, however, the Prod SSL certs have these topics by default. This makes our Prod cert a multi-topic enabler and consequently, entails a requirement on the Notification Provider to be aware of the application bundle Id and specifically the topic to be used for publishes (to be supplied through apns-topic header). Can someone please confirm if the understanding is correct?
- Is it possible to NOT have these extensions in the Prod SSL cert (and make it similar to Development cert) specifically because we are not using VoIP or watchkit services? This is so that we eliminate the dependency of having Notification Provider be aware of the app bundle ID?
3. Assuming #2 is not possible, is it possible to pass multiple values in apns-topic header on publish side, for instance,
apns-topic : my.app.test, my.app.test.voip, my.app.test.complication
4. If the application is distributed with a profile that is tied to Bundle ID : "my.app.test", do we need to create a separate profile for bundle ID : "my.app.test.voip" in order to leverage VoIP notifications?
Kindly advise.
Edit: Also asked this question on Stack Overflow : http://stackoverflow.com/questions/40351170/aps-missing-topic