Received Received Acknwoledgement From GCM Service Message

I am implementing PUSH NOTIFICATION on Android . They work great. However, they are not delivered on time. Therefore, I am trying to find out the time taken to send the sent message by my server to the GCM service and the time taken by the GCM service to deliver the message to my application.

I confirmed that my server sent the message successfully. Is there a way to find out that the GCM service received the message and placed it in turn for delivery? In other words, can we receive confirmation after the message is received by GCM, regardless of whether they are delivered to the application or not?

+4
source share
1 answer

The confirmation you receive from the GCM service only tells you that the message was received by the GCM service, whether it is delivered to the application or not. You will receive it even if the device on which the application is installed is disabled.

If you want to receive confirmation when a message is delivered to the application, you must call your server from your application when it receives the message. You can specify a unique identifier in your message and send this identifier from your application to your server to confirm delivery.

+6
source

All Articles