evollu / evollu/react-native-fcm

refreshToken and subscriptions

Open
#602 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.7k
Forks
661
PR merge metrics
No merged PRs in 30d

Description

My app uses topic subscriptions to send targeted messages to the apps. In our code I assume that when onRefreshToken is called the user has either reinstalled their app or lost their token somehow and that they get a completely fresh token without subscriptions. Given that assumption I re-subscribe to the topic of interest in onRefreshToken. This seems to work fine but I run into some corner cases where some users end up with multiple subscriptions and all I can see when I check the logs on our app server for one of those tokens is that refreshToken has been called, and not much more.

Can subscriptions persist even if the token is refreshed?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.