Do not send Push to users who no longer have the app?

4

I have a GSM PUSH panel and it happens that when the user installs the app I record his id to send future notifications.

But after it uninstalls I continue with the ID of it saved in the database and whenever I run my routine, it sends the push to those users even without having the app installed.

The problem is that I already have thousands of id's and is now taking more and more time to send.

Is it possible to know who does not have the app installed anymore and put a flag in the database so it will not be sent anymore?

JSon return example:

{"multicast_id":5157270514039936452,"success":2,"failure":1,"canonical_ids":0,"results":[{"message_id":"0:1474029083357948%0e3f0485f9fd7acv"},{"error":"MismatchSenderId"},{"message_id":"0:1474029083356778%f17b55e1f9fd7erf"}]}
    
asked by anonymous 09.12.2016 / 01:56

1 answer

0

William, good morning

This answer I'm giving you is only logical, as I have not worked with push (yet rs)

You said that the return does not come with the ID, nor do you have to! You have the Ids in the time you send, just mount a routine that monitors the sending and receiving status.

If you've sent it to the XXX999 device, you do not need this ID to be returned because you already know who you sent it to, just monitor the status!

    
15.12.2016 / 14:27