Push notifications might fail in TestFlight builds even if they work during local development due to differences in the Apple Push Notification service (APNs) environment used.
- Development/Debug Builds: Typically use the Sandbox APNs environment.
- TestFlight Builds: Use the Production APNs environment.
A common reason for failure is configuring your application in Pushwoosh with a Sandbox/Development APNs certificate while testing with TestFlight, which requires a Production certificate.
To resolve this:
- Log in to your Pushwoosh Control Panel.
- Navigate to your application's settings and go to the iOS platform configuration section.
- Verify that you have uploaded and selected a Production APNs certificate (.p12 file) or an APNs Auth Key (.p8 file) that is enabled for the Production environment.
- If you were using a Sandbox certificate, replace it with the correct Production certificate/key.
- Save the configuration changes.
- Create a new build of your application, upload it to TestFlight, and test the push notifications again.
Ensure your app's provisioning profile and entitlements are also correctly configured for production distribution when building for TestFlight.
Comments
0 comments
Please sign in to leave a comment.