Skip to content

Manual FCM Token Refresh / Regeneration API #34

@manesid

Description

@manesid

Problem

We are using this library to receive push notifications via Firebase Cloud Messaging (FCM). Occasionally, specific tokens stop receiving notifications even though:

  • The token is still considered valid by FCM
  • No errors are returned when sending messages
  • Other devices continue to receive notifications
  • Restarting the app does not resolve the issue

Currently, there is no supported way to:

  • Force a token refresh
  • Invalidate the existing token
  • Request a new registration token
  • Re-register the device without clearing app storage

This creates operational issues because affected users silently stop receiving notifications.

Expected Behavior

Provide a public API to refresh or regenerate the FCM token, for example:

await pushReceiver.refreshToken();

or

await pushReceiver.deleteToken();
await pushReceiver.register();

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions