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):
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):