Skip to content

sendToTopic() error when data in undefined #2152

Open
@reza-madani

Description

if data is undefined or null in the Message payload in this file node_modules/firebase_admin/lib/messaging/messaging.js line: 670 will return the error in forEach

if ('data' in payloadCopy) {
            messaging_internal_1.BLACKLISTED_DATA_PAYLOAD_KEYS.forEach((blacklistedKey) => {
.
.
.
 }

must add null check;

Activity

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

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions