Hello.
I implement push notification using ionic/cloud-angular from this article http://docs.ionic.io/services/push/#sending-pushes.
In my app i need to implement next logic:
- My server sent to phone device push notification throught http method “https://api.ionic.io/push/notifications”
- If phone device don’t recieve this push notification in 5 minutes (for exemple phone has not internet now), then my server send sms to this phone
My problem - when i push notification i get NotificationID. But in phone device in method msg has not propperty with NotificationID.
this.push.rx.notification()
.subscribe((msg) => {
alert(msg.title + ': ' + msg.text);
});
I want in this method tell my server, that phone device recieve this NotificationID.
So, how can i realize my logic?
PS.I also try get notification status by http https://api.ionic.io/push/notifications/:notification_id/messages, but in documentation says http://legacy.docs.ionic.io/v2.0.0-beta/docs/push-sending-push#section-message-status
MESSAGE STATUS
SENT
We have delivered the message to the appropriate device provider (APNs, GCM, etc) and did not encounter any immediate errors. This does NOT indicate a message was received on the device.