2
votes

I'm developing an iPhone app that uses push notifications. I have a number of beta users successfully using the app (via HockeyApp), and these archives were signed using my development provisioning profile. I only have one server, which is currently using the sandbox push notification certificates. I'm about to submit my app to the app store, signed using a distribution certificate, and of course this comes with a production push notification certificate... if I switch my server to use this push certificate, won't push notifications stop working for my beta users? Is there a way to have the beta users use the production push notification server? I don't want my beta users to use a separate server because this is a social app and they need to be able to interact with non-beta users, so everyone needs to be on production.

1

1 Answers

1
votes

You need a way for the app to identify itself to the server. You can use a compiler directive with different targets / build schemes to specify the app build type (beta or prod). Send the build type to the server along with the device token. You can then associate the build type with the device token for that user's device in your server-side database.

On the server, select the certificate to use based on the build type.

(of course, since you have beta's out in the wild already the absence of a build type also means beta:-)