Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

I have a question about the sendToDeviceGroup function. #1510

Unanswered
dev-tryit asked this question in Q&A
Discussion options

I have a question about the sendToDeviceGroup function.

sendToDeviceGroup has three parameters.
sendToDeviceGroup(notificationKey: string, payload: MessagingPayload, options?: MessagingOptions): Promise<MessagingDeviceGroupResponse>;

Among these, I am curious about MessagingOptions.

In MessagingOptions, the priority field defaults to high.
(https://firebase.google.com/docs/reference/admin/node/firebase-admin.messaging.messagingoptions.md#messagingoptions_interface)

if MessagingOptions is undefiened, Is the message priority set high when message notifications are sent?

You must be logged in to vote

Replies: 1 comment

Comment options

Looking at the reference docs and the REST API , if MessagingOptions are not defined the API will use the default priorities, which is normal for data messages and high for notification messages.

Adding @chong-shao to confirm this as sendToDeviceGroup uses the FCM legacy API.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /