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

bug(messaging): tokenReceived listener is not triggered #820

Open
7 of 17 tasks
robingenz opened this issue Feb 12, 2025 · 0 comments
Open
7 of 17 tasks

bug(messaging): tokenReceived listener is not triggered #820

robingenz opened this issue Feb 12, 2025 · 0 comments
Assignees
Labels
bug/fix Something isn't working package: messaging platform: android Android platform platform: ios iOS platform platform: web Web platform

Comments

@robingenz
Copy link
Member

Plugin(s)

  • Analytics
  • App
  • App Check
  • Authentication
  • Crashlytics
  • Cloud Firestore
  • Cloud Functions
  • Cloud Messaging
  • Cloud Storage
  • Performance
  • Remote Config

Version

7.0.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

I'm not sure if this is actually the case, but it should be checked that the tokenReceived listener is always triggered when a new token is available - even if the token is requested for the first time via the getToken() method.

This may already be the case, but it should be checked on all platforms and fixed if necessary.

Expected behavior

The tokenReceived listener should always be triggered when a new token is available. Even if the token was actively requested via the getToken() method.

Reproduction

Steps to reproduce

  1. Register the tokenReceived listener
  2. Call the getToken() method

Other information

No response

Capacitor doctor

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@robingenz robingenz added bug/fix Something isn't working package: messaging platform: android Android platform platform: ios iOS platform platform: web Web platform labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix Something isn't working package: messaging platform: android Android platform platform: ios iOS platform platform: web Web platform
Projects
None yet
Development

No branches or pull requests

2 participants