1
I’m developing an app that sends notification by push, but so that my server does not send notifications to the devices from which my application was uninstalled and does not pollute my server, as I might know when the user uninstalled my application?
Yeah, I did a little research yesterday, and that’s really the only way. I will edit the reply including links with ways to access the feedback service. Thanks @Paulorodrigues.
– Tiago Amaral
Important note, the link: 2 really works! Just put the
cert_desenvolvimento.pem
orcert_distriuicao.pem
. Adjust the variable#apnsPort
to 2196 and to allocate$useDev = TRUE;
to carry out development tests orFALSE
for actual distribution testing/use. Delete the first linefunticion checkFeedbackServer($appBundle,$useDev=TRUE) {
E the Chavez}
at the end to work directly on the code.– Tiago Amaral
I did some tests of this service and it is inaccurate, because in the feedback comes the last push date that the app did not receive, and not the oldest push date it did not receive. So the inaccuracy is very great, and it does not serve the purpose I have in mind. Because I need to know if the app does not receive the push within 60 days. To ensure that the user no longer receives the push. Or create a logic to store this feedback data and create a history of incoming pushs.
– Tiago Amaral
It’s not that the service is inaccurate, it just doesn’t work the way you wanted it to. The idea is just this, you also maintain a database of notifications not received and depending on the amount (or time interval) you already deduce that the device no longer has your application and does what should be done.
– Paulo Rodrigues
Got it, I’ll see another way, I’ll devise a way for the app to maintain a notification with the bank, and if the notification does not occur in an X time interval I will consider as inactive app and notify the user by email. Thanks again!
– Tiago Amaral