With these it helps I think I figured it out. What the problem seems to be is that I used my phone for testing in development mode. My phone has registered with a development device token. When downloading the app form the store in production mode, that token is no longer valid and my phone does not receive the notification. Somehow my device stayed associated with a development token even after erasing app that was installed with Visual Studio and downloading the app from the store. I found this on the Azure documentation website link here:
will help you So I'm not 100% sure what the problem was but I've fixed it. I ended up removing anything that had to do with skus then slowly adding it back in bit by bit. What I think most likely caused the issue was that I had a version of a the Product class that I renamed because I wasn't using it and didn't want to lose track of the work that I had done (I know, not necessary as I'm using git. I guess old habits die hard) Anyway, I had changed the file name, however I neglected to rename the class definition in the file. The name was such that it came after the real Product class that I was using. I'm thinking that this caused a conflict on heroku. The thing I don't understand is why it didn't cause any problems in my local dev environment.
will push notifications with Production-SSL certificate work when I'm still testing my app? How can I know it will work?
To fix the issue you can do Create a provisioning profile for "Ad Hoc" distribution, using your production certificate. Sign your app with that and install. Make sure your SSL connection to APNS knows which certificate to use, depending on whether client is production or dev.
Advice on getting Push Notifications to Work on Production Builds
To fix this issue You can test your production mode notifications before releasing it to appstore. Apple provides a mechanism for it. You need to build an AdHoc version of your App. If you are not familiar with Adhoc distribution please refer the below link iPhone: Push Notification Testing on Production Certificate
How do I make push notifications work in production for iOS?