We have developed an ionic app with ionic push notifications for iOS and
Android. The android push notification work perfectly. iOS
notifications report a successful status from ionic, but the message is
never received on the mobile device. See the status below:
1 - App has been accepted by the Apple store and is available for user
testing using Test Flight.
2 - Apple certificates have been created according to the Ionic user
manual (see link below).
3 - Apple certificate uploaded to Ionic to enable device discovery and
push permissions for iOS devices.
4 - No push notifications are received by iOS devices. To test we are
sending a push message directly to the mobile device using the ionic API
using Postman or cUrl:
REQUEST:
{
“tokens”:
[“7ef4f3c30800a2aabcfe95ff2da6dba88dd8ad8af48b4fe37d489ef48a72ece7”],
“profile”: “myionicprofile”,
“notification”: {
“title”: “Hi”,
“message”: “Hello world!”,
“android”: {
“title”: “Hey”,
“message”: “Hello Android!”
},
“ios”: {
“title”: “Hi”,
“message”: “Hello iOS!”
}
}
}
RESPONSE:
{
“meta”: {
“status”: 201,
“request_id”: “e802eca8-85b0-4002-a1f5-d85809f0fe43”,
“version”: “2.0.0-beta.0”
},
“data”: {
“uuid”: “47287de4-2a52-4f5d-a962-0488d73eea51”,
“state”: “enqueued”,
“created”: “2016-11-02T19:07:17.891869+00:00”,
“status”: “open”,
“app_id”: “ed6f801d”,
“config”: {
“tokens”: [
“7ef4f3c30800a2aabcfe95ff2da6dba88dd8ad8af48b4fe37d489ef48a72ece7”
],
.
.
.
}
}
}
I then query the uuid to find the delivery status for that message:
GET
https://api.ionic.io/push/notifications/47287de4-2a52-4f5d-a962-0488d73eea51/messages
RESPONSE:
{
“meta”: {
“status”: 200,
“request_id”: “7328f2a5-8a6d-4c78-9f00-20870a89adc5”,
“version”: “2.0.0-beta.0”
},
“data”: []
}
Where is the disconnect? Why are iOS devices not receiving the message
even though the delivery is shown as successful?