A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://firebase.google.com/docs/reference/admin/node/firebase-admin.messaging below:

firebase-admin.messaging package | Firebase Admin SDK

firebase-admin.messaging package

Stay organized with collections Save and categorize content based on your preferences.

Firebase Cloud Messaging (FCM).

Functions Function Description getMessaging(app) Gets the Messaging service for the default app or a given app.admin.messaging() can be called with no arguments to access the default app's Messaging service or as admin.messaging(app) to access the Messaging service associated with aspecific app. Classes Interfaces Type Aliases Type Alias Description Message Payload for the Messaging.send() operation. The payload contains all the fields in the BaseMessage type, and exactly one of token, topic or condition. getMessaging(app)

Gets the Messaging service for the default app or a given app.

admin.messaging() can be called with no arguments to access the default app's Messaging service or as admin.messaging(app) to access the Messaging service associated with aspecific app.

Signature:

export declare function getMessaging(app?: App): Messaging;
Parameters Parameter Type Description app App Optional app whose Messaging service to return. If not provided, the default Messaging service will be returned.

Returns:

Messaging

The default Messaging service if no app is provided or the Messaging service associated with the provided app.

Example 1
// Get the Messaging service for the default app
const defaultMessaging = getMessaging();

Example 2
// Get the Messaging service for a given app
const otherMessaging = getMessaging(otherApp);

Message

Payload for the Messaging.send() operation. The payload contains all the fields in the BaseMessage type, and exactly one of token, topic or condition.

Signature:

export type Message = TokenMessage | TopicMessage | ConditionMessage;

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-11-12 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-12 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3