How to enable multiple IOS certificates for push notifications

If u have separate app for two different users like separate app for doctor and separate app for patient. How can I can ios p12 file for both. because right now it is enabling only one certificate. and notifications are goining one way.

Hello @rehannadeem, to enable push notifications for a different application, you’ll need to upload it separately in a different console. Please let us know if you have any questions or if we’ve misunderstood your use case.

console can’t be different because users belong to same console they have common communities to follow. Example is very clear we have two type of user one is doctor and one is patient. Both belongs to same product but doctor’s app is different and consumer app is different. So when they patient chat with doctor. How we can enable push both way if only one certificate is allowed?

If that’s the case, since they’re under the same community and application on our end, one certificate should be sufficient. With a single push setup on our side, we support both directions of push notifications/events. However, whether it’s used as one-way or two-way depends on the configuration on your application side.

bundle identifier of doctor ios app is com.doctor.app and for patient is com.patient.app. now both app’s has different certificates. Is it clear now?

lets schedule call with some technical guy.

Hello @rehannadeem thank you for the explanation. If that’s the case, you’ll need to use key-based authentication instead of certificates.

Our console supports push notification keys, and a single notification key (generated from the Apple Developer Console) can be used across multiple apps.

please share documentation for it.

kindly share documentation link or schedule a technical call. I didn’t see such feature in my console.

Hello @rehannadeem, you only need to generate a push notification key through your Apple Developer portal.

For more details on setting up push notifications using token-based authentication (instead of certificates), please refer to the official Apple Developer documentation:
Establishing a token-based connection to APNs | Apple Developer Documentation.

@SocialPlus_Support what todo with they key? where we have to submit in to your console?

Hello @rehannadeem, you can select the ‘p8 authentication key’ and fill in the detail on the console, please refer the sample screenshot below:

Dear SocialPlus Support Team,

I am currently utilizing your platform to power key features (chat, social feed, etc.) for two distinct iOS mobile applications: a Doctor App and a Patient App. Both of these iOS applications are part of the same overall project within my SocialPlus console, as they share common functionalities and user interactions managed through your platform.

Each of these iOS applications has its own unique Apple Bundle ID:

  • Doctor App Bundle ID: com.mycompany.doctorapp (example)

  • Patient App Bundle ID: com.mycompany.patientapp (example)

My goal is to send push notifications to users of both the Doctor App and the Patient App, all managed from within this single SocialPlus project.

Following Apple’s recommended token-based authentication method for APNs, I have successfully generated a single .p8 Authentication Key from my Apple Developer account. This key is associated with my Apple Developer Team and, according to Apple’s documentation, is designed to serve push notifications for multiple applications under the same team.

When attempting to configure push notification credentials in my SocialPlus console, I am encountering a critical issue. I have successfully set up the .p8 key for my Doctor App by uploading the .p8 file, providing the Key ID, Team ID, and the Doctor App’s Bundle ID (com.mycompany.doctorapp).

However, when I try to add another push notification configuration for my Patient App (using the same .p8 file, Key ID, and Team ID, but with the Patient App’s Bundle ID com.mycompany.patientapp), I receive the following warning message upon activation:

"Activate certificate Are you sure you want to activate the one app and one biz push with p8key certificate? After activation, the previously active certificate of the same platform will be deactivated."

This message suggests that only one Apple push notification configuration can be active at a time within my SocialPlus project, which contradicts my understanding of .p8 key capabilities and my requirement to send notifications to both of my distinct iOS applications. If I proceed, it implies that push notifications for my Doctor App would cease to function once the Patient App’s configuration is activated, and vice-versa.

My core question is:

How can I effectively configure push notifications for both my Doctor App (com.mycompany.doctorapp) and my Patient App (com.mycompany.patientapp) simultaneously within my single existing SocialPlus project, leveraging a single .p8 Apple Push Notification Authentication Key, without one configuration deactivating the other?

Please provide detailed instructions or clarify the intended workflow for this scenario within the SocialPlus platform. If this functionality requires a different setup (e.g., multiple SocialPlus projects, or a specific feature I need to enable), please advise on the best practice.

Thank you for your prompt assistance in resolving this critical issue.

Hello @rehannadeem , thank you for providing all the detailed information. After further review, this appears to be a current product limitation. Our system doesn’t support sending push notifications to multiple application IDs at the same time.

If sending notifications to multiple apps is needed, you might need to separate the applications.

Can we share feed and have chat between two different applications?

Hello @rehannadeem , with our current design, this isn’t possible. However, you could consider using our Webhook as an alternative solution - more details are available here: Push Notifications | social.plus docs