Smile Applications Smile Applications - 1 month ago 8
Android Question

Know if the app received the notification from server side

I'm building a newspaper-like app and I would like to know how many people received the article's push notification vs how many actually read it.

I was thinking to implement a way in which when the notification is received the app wakes up and send a request to the server saying "Hi I'm _____, I've received the notification of the article ____" and store it in the database. Then afterwards if the user click on the notification and goes to read the article I send another request saying "Hi I'm ____ and I've read the article _____" and I also store it on the database. Afterwards with some queries I'm able to understand the percentage read/received.

I don't understand if it's even possible to wake up the app even if it was not opened by the user in a while and send a request to the server (for background is meant that the application is not launched or that is in the cache ?).

I would like to achieve what they did with Whatsapp:


  • I receive a new message on Whatsapp

  • I don't open the app

  • I go to WhatsApp Web

  • I open the conversation on WhatsApp Web

  • The badge and the notification on the phone goes away because I read it somewhere else



I think that that feature is achieved with silent push notifications that just update the app badge and clear the read notification.

Answer

Reply from Apple Developer Technical Support:

Hello Matteo,

Thank you for contacting Apple Developer Technical Support (DTS). Our engineers have reviewed your request and have concluded that there is no supported way to achieve the desired functionality given the currently shipping system configurations.

So at the end of the games IT'S NOT POSSIBLE