Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49169

Ionic 1 - Push Notification

$
0
0

@lto wrote:

Hi,

I am using Ionic 1, implement feature Push Notification, testing my in the iOS, iphone 6s

following this article everything works just fine until today, mobile has stopped receiving messages,
http://docs.ionic.io/v2.0.0-beta/docs/push-full-setup
http://docs.ionic.io/v2.0.0-beta/docs/push-sending-push

sending push notification message looks fine, I got this response
https://api.ionic.io/push/notifications
{
"meta": {
"status": 201,
"request_id": "2dbdf53c-0e99-46c2-a8e9-cb5f63633476",
"version": "2.0.0-beta.0"
},
"data": {
"created": "2016-08-26T07:30:54.567759+00:00",
"state": "enqueued",
"uuid": "8438b9a8-28ea-4695-8c69-c677e36f1e6f",
"status": "open",
"app_id": "982cdbb0",
"config": {
"profile": "ionic_push_service_pro",
"notification": {
"ios": {
"payload": {
"message": "this is a sample message"
},
"sound": "ios-sound.wav",
"badge": 0,
"title": "test",
"priority": 10,
"message": "this is a sample message"
}
},
"tokens": [
"149f5a00720e8926ffc3aaf4f64c7300e1561a49cbef320c9616b32e93761c33"
]
}
}
}

checking the status of the message, sometimes I got this
https://api.ionic.io/push/notifications/8438b9a8-28ea-4695-8c69-c677e36f1e6f/messages
{
"data": [],
"meta": {
"status": 200,
"version": "2.0.0-beta.0",
"request_id": "f50cc4c2-8e1f-45dd-bb7d-607c21112bb0"
}
}

but sometimes I got this
{
"data": [
{
"notification": "1fe602ab-ad4f-4517-81c3-8b6d962d0505",
"token": {
"token": "0c030e2f15973406b0e14fdb3f16c2f6a25f764c5fb64eef690a0980a7b9f688",
"app_id": "982cdbb0",
"valid": true,
"created": "2016-08-26T03:49:56.103048+00:00",
"type": "ios",
"id": "bd3700601c3c734dea8b76f99e353395",
"invalidated": null
},
"status": "sent",
"uuid": "d0007619-76a1-46ea-a465-5abd2742afda",
"created": "2016-08-26T08:16:30.197967+00:00",
"error": null,
"user_id": null
}
],
"meta": {
"status": 200,
"version": "2.0.0-beta.0",
"request_id": "28aa3921-1d14-430c-b82a-9f4719c41626"
}
}

both return 200, but I never receive message in my device, please help anything I might miss or need to check.

thanks

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>