In many cases, you install PushBots in your app, test it, everything works fine then you decide to move to production then you stop receiving notifications! So what happened?
The two most frequent cases are the following
Production certificate with registered development token.
In other words, you've uploaded a production certificate on PushBots while the app uses development provisioning profile not a production one.
So most probably your application is compiled with a development provisioning profile which will make the application request a development token form Apple servers which won't work as a result while trying to send notifications to it with a production certificate.
To solve this problem, you should either replace the production certificate on PushBots with a development one, OR recompile the application with a production provisioning profile.
If the app is already submitted to the App Store, you can simply update the certificate on PushBots temporality till the new update is rolled out with the new provisioning profile.
Development certificate with a registered production token
In other words, you've uploaded a development certificate on PushBots while the app uses production provisioning profile not a development one.
In this case when your app is compiled with a production provisioning profile, it will request a production token form Apple servers which won't work as a result while trying to send notifications to it with a development certificate.
To solve this problem, you should either replace the development certificate on PushBots with a production one, OR recompile the application with a development provisioning profile.
If the app is already submitted to the App Store, you can simply update the certificate on Pushbots temporality till the new update is rolled out with the new provisioning profile.
How do I use the correct provisioning profile?
Xcode 8 +
Automatic Signing: While developing your app with xCode, you'll have to use an app on PushBots with development certificate attached it. And just before releasing the app to Appstore or TestFlight, you'll have to change the application Id in your AppDelegate to another one that uses Production certificate.
First you'll have to enable automatic signing:
Then enable Push notification in Capabilities tab:
Xcode <8
The provisioning profile can be found in your application in Xcode build settings: