Skip to content

messaging.sendMulticast does not send FcmOptions #712

@stari4ek

Description

@stari4ek

[READ] Step 1: Are you in the right place?

yep

[REQUIRED] Step 2: Describe your environment

[REQUIRED] Step 3: Describe the problem

messaging.sendMulticast does not send FcmOptions. sendAll works well

Steps to reproduce:

messaging.sendMulticast

Relevant Code:

this is current implementation of sendMulticast:

        var messages = copy.tokens.map(function (token) {
            return {
                token: token,
                android: copy.android,
                apns: copy.apns,
                data: copy.data,
                notification: copy.notification,
                webpush: copy.webpush,
            };
        });
        return this.sendAll(messages, dryRun);

which obviously does not copy fcmOptions property from original message

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions