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

How can I add labels to fcm_options? #609

Open
iiii4966 opened this issue Apr 2, 2021 · 1 comment
Open

How can I add labels to fcm_options? #609

iiii4966 opened this issue Apr 2, 2021 · 1 comment

Comments

@iiii4966
Copy link

iiii4966 commented Apr 2, 2021

The push is being sent through the gcm device in this module.
But as the title says, when send push, need to add lable to fcm_options to track.
If look at the internal code, The analyticsLabel key I need does not exist.
fcm

FCM_OPTIONS_KEYS = [
	"collapse_key", "priority", "content_available", "delay_while_idle", "time_to_live",
	"restricted_package_name", "dry_run"
]

Can I add it temporarily or add it?

{
   "message":{
      "data":{
         
      },
      "fcmOptions":{
         "analyticsLabel":"HelloWorld" <- this!!
      },
      "notification":{
         "body":"Hello world"
      },
      "token":"token"
   },
   "validateOnly":false
}
@jamaalscarlett
Copy link
Member

@iiii4966 The analyticsLabel is part of the v1 api that is not yet fully supported. See #546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants