Web service with APNS serving two applications = two certificates?

I am developing an iOS application. This app has two goals (free version and premium version). Then I want to send push notifications, drop my service network.

So, do I need two certificates? Since my application (free or premium) uses the same web service and the same database. And when I want to send a push notification, now I have to store and watch if this is one or the other version?

Can I use one certificate? Is it possible to combine two certificates into one?

Thanks.

+4
source share
1 answer

You cannot use one certificate, because each certificate associated with the application identifier and the application identifier are different for each application (it contains the application package identifier, which is unique for each application).

You must use two certificates, which means that your server will need to know which device pointer which application belongs to and use the appropriate certificate. Perhaps when you send a device token from your application to your server, you should send additional information that indicates which application sent the token).

+4
source

Source: https://habr.com/ru/post/1481179/


All Articles