I created a table to track the registeration tokens,
mix phx.gen.context Firebase Token tokens user_id:references:users token_id:string
And I need to track the tokens, so how do I send the tokens from the android app to the server,
and is there any library that tracks the tokens?
Great but is it guaranteed that when a device token becomes invalid that it is no longer needed?
I think that when a token becomes invalid, you can throw it away. The mobile app will have to send a new token if the backend wants to push the notifications. See the docs for more details on managing tokens.
1 Like