Back to Firebase Js Sdk

FcmOptions interface

docs-devsite/messaging_sw.fcmoptions.md

12.12.11.2 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

FcmOptions interface

Options for features provided by the FCM SDK for Web. See WebpushFcmOptions<!-- -->.

<b>Signature:</b>

typescript
export interface FcmOptions 

Properties

PropertyTypeDescription
analyticsLabelstringThe label associated with the message's analytics data.
linkstringThe link to open when the user clicks on the notification.

FcmOptions.analyticsLabel

The label associated with the message's analytics data.

<b>Signature:</b>

typescript
analyticsLabel?: string;

The link to open when the user clicks on the notification.

<b>Signature:</b>

typescript
link?: string;