'Distribution Certificate for Debug in Xcode

We are currently having issues by sending push notifications to our users who have downloaded an app of ours.

Details: Back-end: Kinvey (push notifications are triggered from the back-end app running on kinvey). We have installed the APNS certificate on Kinvey are able to send push notifications to devices running the app signed with a Developer Certificate

Front-end: When we sign the app with a iOS Distribution Certificate and deploy our app to Test Flight, push notifications are not working

Testing: We would like to build and sign the app in Xcode and side load the app to our test iPhone in order to view the logs. After some testing, we noticed that Xcode gives us errors when trying to load the app using a Distribution certificate (Apple & iOS). The app is able to load when using a Developer Certificate.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source