After we published our application to the appstore, push notifications stoped working. If I install application by xcode with release mode it’s ok, but if I install application with appstore or testflight it doesn’t work.
What I may miss?
After we published our application to the appstore, push notifications stoped working. If I install application by xcode with release mode it’s ok, but if I install application with appstore or testflight it doesn’t work.
What I may miss?
You are using development certificates this works but not when upload to testflight… you must use production certificates.
If you remove app and do a fresh install works ?? What is your push provider? Do you change the development mode to production ??
I use release certificates on the server.
If you remove app and do a fresh install works ?
No
What is your push provider?
APNs
Do you change the development mode to production ?
on the server - yes.
You need to send a manual push notification and send another request to see the status of your sent push. It will tell you exactly what is wrong.
curl -X POST -H “Authorization: Bearer YOUR_PUSH_TOKEN” -H “Content-Type: application/json” -d ‘{
“user_ids”: [“YOUR_USER_IDS”],
“profile”: “YOUR_PUSH_PROFILE”,
“notification”: {
“message”: “sup broh”
}
}’ “https://api.ionic.io/push/notifications”
curl -X GET -H “Authorization: Bearer YOUR_PUSH_TOKEN” -H “Content-Type: application/json” “https://api.ionic.io/push/notifications/YOUR_UUID_OF_PUSH_RESPONSE/messages”
See the error in the returned response and match it with one of the ones outlined below.
I dont understand when you said that your push provider is APNs.
Push notification uses a provider (Ionic Push, etc etc) to connect with APNs (from iOS) and GCM (android) to delivered the Notification over devices.
In my case, i configure my provider with certificates and mark that production mode, then:
I use phonegap-plugin-push in ionic project and com.notnoop.apns:apns on my server that connects with APNs.
I have found problem with my server (it caches dev cert), but with production certificate it doesn’t work too even if I install application via xcode.
I have found problem with my server and not it works. Thank you