@firebase/messaging
Version:
This is the Firebase Cloud Messaging component of the Firebase JS SDK.
40 lines (39 loc) • 1.9 kB
TypeScript
/**
* @license
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export declare const DEFAULT_SW_PATH = "/firebase-messaging-sw.js";
export declare const DEFAULT_SW_SCOPE = "/firebase-cloud-messaging-push-scope";
export declare const DEFAULT_VAPID_KEY = "BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4";
export declare const ENDPOINT = "https://fcmregistrations.googleapis.com/v1";
/** Key of FCM Payload in Notification's data field. */
export declare const FCM_MSG = "FCM_MSG";
export declare const CONSOLE_CAMPAIGN_ID = "google.c.a.c_id";
export declare const CONSOLE_CAMPAIGN_NAME = "google.c.a.c_l";
export declare const CONSOLE_CAMPAIGN_TIME = "google.c.a.ts";
/** Set to '1' if Analytics is enabled for the campaign */
export declare const CONSOLE_CAMPAIGN_ANALYTICS_ENABLED = "google.c.a.e";
export declare const TAG = "FirebaseMessaging: ";
export declare const MAX_NUMBER_OF_EVENTS_PER_LOG_REQUEST = 1000;
export declare const MAX_RETRIES = 3;
export declare const LOG_INTERVAL_IN_MS = 86400000;
export declare const DEFAULT_BACKOFF_TIME_MS = 5000;
export declare const FCM_LOG_SOURCE = 1249;
export declare const SDK_PLATFORM_WEB = 3;
export declare const EVENT_MESSAGE_DELIVERED = 1;
export declare enum MessageType {
DATA_MESSAGE = 1,
DISPLAY_NOTIFICATION = 3
}