You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
Expected behavior
Whether having
refreshToken()
or not, topic subscription should still work.Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: