Skip to content

Cant add analytics_label #108

@ManuelCostanzo

Description

@ManuelCostanzo

Hey, hi everyone!

I have an issue when sending push notifications to multiple devices. I'm doing:

    options = {
      'data': {
        payload: {
          data: {
            id: 1,
          },
        }.to_json,
      },
      'notification': {
        title: "algo",
        body: "dos",
      },
      'android': {},
      'apns': {
        payload: {
          aps: {
            sound: "default",
            category: "#{Time.zone.now.to_i}",
          },
        },
      },
      'fcm_options': {
        analytics_label: "Label topic",
      },
    }
    response = fcm.send(registration_ids, options)

The push notification sent well, but Firebase is not creating the label. Only worked when I used send_v1 and specifying only 1 devise, but I have to send to multiple devices.

Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions