notifo-io / sdk-xamarin

6 stars 1 forks source link

Refresh token periodically #12

Open SebastianStehle opened 1 year ago

SebastianStehle commented 1 year ago

See: https://firebase.google.com/docs/cloud-messaging/manage-tokens#update-tokens-on-a-regular-basis

@CR4567

CR4567 commented 1 year ago

That's a pretty nice article. We already had the idea of refreshing the token regularly in our old app architecture but always had issues with how to implement something like a periodical job. But it seems there are more solutions recently: https://medium.com/android-news/how-we-do-automatic-token-refreshing-using-androids-new-work-manager-a0347f506117

I also like the idea of tracking the age of the tokens for validation reasons. We were always looking for indicators of tokens are valid or not.

SebastianStehle commented 1 year ago

There is an article for xamarin: https://devblogs.microsoft.com/xamarin/getting-started-workmanager/

I also like the idea of tracking the age of the tokens for validation reasons. We were always looking for indicators of tokens are valid or not.

What would be the difference to the logs we already have?

SebastianStehle commented 1 year ago

But the dependency list is huge, I think this is something that the application should implement.

SebastianStehle commented 1 year ago

I have added a separate package for that.