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

Topic subscription not working after refreshing token #159

Open
vincentsartoko opened this issue May 26, 2024 · 0 comments
Open

Topic subscription not working after refreshing token #159

vincentsartoko opened this issue May 26, 2024 · 0 comments

Comments

@vincentsartoko
Copy link

Describe the bug
I want to refresh token everytime an application loads, and then subscribe to a topic. After refreshing the token + subscribing to a topic, notifications are not sent. When I remove the refreshToken() code, everything works normally.

To Reproduce

// notifications sent to topic 'topic_id' doesn't work 
await FCM.refreshToken();
await PushNotifications.register();
await FCM.subscribeTo({ topic: 'topic_id' });

// notifications sent to topic 'topic_id' works 
await PushNotifications.register();
await FCM.subscribeTo({ topic: 'topic_id' });

Expected behavior
Whether having refreshToken() or not, topic subscription should still work.

Smartphone (please complete the following information):

  • Device: Samsung S22 ultra
  • OS: Android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant