Clark
Clark

Reputation: 1365

GCM Checking for Delivery Failure when time_to_live = 0

Is there a way to determine if the delivery of a message failed when time_to_live = 0?

According to the GCM reference, messages that have time_to_live = 0 are attempted to be delivered immediately, but are discarded on failure, rather than saved for future delivery.

I was wondering if there was a way to determine if the message was discarded because of a failed send attempt?

Upvotes: 1

Views: 65

Answers (1)

Kay_N
Kay_N

Reputation: 997

You need to implement error handling. See here.

Also, you can recover non-collapsible messages which are stored by onMessagesDeleted.listener as explained here.

Hope this answers your question.

Upvotes: 1

Related Questions