Skip to content

How can I add labels to fcm_options? #609

Open
@iiii4966

Description

@iiii4966

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
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions