ably / push-example-android

A minimal example/test application demonstrating use of Android push functionality
0 stars 4 forks source link

Listen to push registration failures: Listen to `io.ably.broadcast.PUSH_UPDATE_FAILED` action string in intents #14

Open ben-xD opened 2 years ago

ben-xD commented 2 years ago

It's important to check for failures related to FCM registration token update to Ably by listening with an Intent Filter with action string io.ably.broadcast.PUSH_UPDATE_FAILED. We should show users how to implement the callback in a broadcast receiver.

I have updated the docs to add this information to help users, but it has not been released/ merged into the live documentation yet: https://github.com/ably/docs/pull/1177

QuintinWillison commented 2 years ago

@ben-xD's documentation update, described in the opening comment on this issue, has been landed and is visible here - see title "Handle push notification lifecycle" (deep links not supported in docs).