Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting duplicate messages when opening app [Intermittent] #8

Open
suyog-bst opened this issue Apr 25, 2024 · 1 comment
Open

Getting duplicate messages when opening app [Intermittent] #8

suyog-bst opened this issue Apr 25, 2024 · 1 comment
Labels
question Further information is requested

Comments

@suyog-bst
Copy link

I noticed this sometimes that if I close the app and restart it, it receives some messages that have already been received previously. The fcm message id is also the same. This happens intermittently.

If it helps, I normally close the app about 10-15 seconds after receiving the FCM message and then restart it.

@suyog-bst suyog-bst changed the title Getting duplicate messages when opening app Getting duplicate messages when opening app [Intermittent] Apr 25, 2024
@alchemicas
Copy link
Member

Hi @suyog-bst ! Don't know if you looked at the examples, but you need to provide a Storage instance to the FcmClient in order to have persistence of the ids that have already been read, by default the FcmClient uses the MemoryStorage, which only lasts as long as the application is running.

@alchemicas alchemicas added the question Further information is requested label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants