iOS Notification - How to manage two app IDs with one P12 file

830 Views Asked by At

I have a notification project that is built for iPhone and iPad. So I have 2 app IDs = 2 applications on the Apple Store.

If I understand the official Apple Guide Lines (https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringPushNotifications/ConfiguringPushNotifications.html), I have to create a Push Notification Certificate for a specific App ID. So 2 certificates for notification feature will be created at the end due to the two App IDs I have.

On my server application, I have to manage a .p12 file to send notifications. It works well when I have 1 APNs certificate inside (for example the one that concerns my iPhone app). When I have a .p12 file that contains the 2 APNs certificates (iPhone + iPad), I can't send notifications from server side ! Error is "Failed to deliver notification with error code 8". I'm using Sandbox gateway as I'm using a DEV certificate.

How to manage the 2 app in one .p12 file ? Is it possible ? I'm using https://github.com/notnoop/java-apns library.

Thank you for your time,

0

There are 0 best solutions below