@hmscore/cordova-plugin-hms-push
Version:
Cordova HMS Push Plugin
734 lines (730 loc) • 98.2 kB
JavaScript
/*
Copyright 2020-2024. Huawei Technologies Co., Ltd. All rights reserved.
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
https://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.
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { AwesomeCordovaNativePlugin, cordova } from "@awesome-cordova-plugins/core";
var HmsPushOriginal = /** @class */ (function (_super) {
__extends(HmsPushOriginal, _super);
function HmsPushOriginal() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.HmsPushResultCode = HmsPushResultCode;
_this.CordovaRemoteMessage = CordovaRemoteMessage;
_this.RemoteMessageBuilder = RemoteMessageBuilder;
_this.DEFAULT_TOKEN_SCOPE = "HCM";
return _this;
}
/**
* This method initialized HmsPushOriginal.
* @returns Promise<void>
*/
HmsPushOriginal.prototype.init = function () { return cordova(this, "init", { "otherPromise": true }, arguments); };
HmsPushOriginal.prototype.enableLogger = function () { return cordova(this, "enableLogger", { "otherPromise": true }, arguments); };
HmsPushOriginal.prototype.disableLogger = function () { return cordova(this, "disableLogger", { "otherPromise": true }, arguments); };
/**
* This method is used to disable the display of notification messages. If you want to control the display of notification messages in an app, you can call this method. This method applies to notification messages but not data messages. It is the app that determines whether to enable or disable data messaging.
* @returns Promise<string>
*/
HmsPushOriginal.prototype.turnOnPush = function () { return cordova(this, "turnOnPush", { "otherPromise": true }, arguments); };
/**
* This method is used to enable the display of notification messages. If you want to control the display of notification messages in an app, you can call this method. This method applies to notification messages but not data messages. It is the app that determines whether to enable or disable data messaging.
* @returns Promise<string>
*/
HmsPushOriginal.prototype.turnOffPush = function () { return cordova(this, "turnOffPush", { "otherPromise": true }, arguments); };
/**
* This method is used to obtain an AAID in synchronous mode. Before applying for a token, an app calls this method to obtain its unique AAID. The HUAWEI Push server generates a token for the app based on the AAID. If the AAID of the app changes, a new token will be generated next time when the app applies for a token. If an app needs to report statistics events, it must carry the AAID as its unique ID.
* @returns Promise<string>
*/
HmsPushOriginal.prototype.getId = function () { return cordova(this, "getId", { "otherPromise": true }, arguments); };
/**
* This method is used to obtain an AAID in asynchronous mode.
* @returns Promise<string>
*/
HmsPushOriginal.prototype.getAAID = function () { return cordova(this, "getAAID", { "otherPromise": true }, arguments); };
/**
* This method is used to obtain a token required for accessing HUAWEI Push Kit. If there is no local AAID, this method will automatically generate an AAID when it is called because the HUAWEI Push Kit server needs to generate a token based on the AAID.
* @returns Promise<string>
* @params scope ? : String
*/
HmsPushOriginal.prototype.getToken = function (scope) { return cordova(this, "getToken", { "otherPromise": true }, arguments); };
/**
* Obtains a token that a target app developer applies for a sender to integrate Push Kit in the multi-sender scenario.
* @returns Promise<string>
* @params subjectId ? : String
*/
HmsPushOriginal.prototype.getTokenWithSubjectId = function (subjectId) { return cordova(this, "getTokenWithSubjectId", { "otherPromise": true }, arguments); };
/**
* This method is used to obtain the generation timestamp of an AAID.
* @returns Promise<string>
*/
HmsPushOriginal.prototype.getCreationTime = function () { return cordova(this, "getCreationTime", { "otherPromise": true }, arguments); };
/**
* This method is used to delete a local AAID and its generation timestamp.
* @returns Promise<string>
*/
HmsPushOriginal.prototype.deleteAAID = function () { return cordova(this, "deleteAAID", { "otherPromise": true }, arguments); };
/**
* This method is used to delete a token. After a token is deleted, the corresponding AAID will not be deleted. This method is a synchronous method.
* @returns Promise<string>
* @params scope ? : String
*/
HmsPushOriginal.prototype.deleteToken = function (scope) { return cordova(this, "deleteToken", { "otherPromise": true }, arguments); };
/**
* Deletes a token that a target app developer applies for a sender to integrate Push Kit in the multi-sender scenario.
* @returns Promise<string>
* @params subjectId ? : String
*/
HmsPushOriginal.prototype.deleteTokenWithSubjectId = function (subjectId) { return cordova(this, "deleteTokenWithSubjectId", { "otherPromise": true }, arguments); };
/**
* This method is used to subscribe to topics in asynchronous mode. The HUAWEI Push Kit topic messaging function allows you to send messages to multiple devices whose users have subscribed to a specific topic. You can write messages about the topic as required, and HUAWEI Push Kit determines the release path and sends messages to the correct devices in a reliable manner.
* @param {string} topic Topic to be subscribed to.
* @returns Promise<string>
*/
HmsPushOriginal.prototype.subscribe = function (topic) { return cordova(this, "subscribe", { "otherPromise": true }, arguments); };
/**
* This method is used to unsubscribe from topics that are subscribed to through the subscribe method.
* @param {string} topic Topic to be unsubscribed to.
* @returns Promise<string>
*/
HmsPushOriginal.prototype.unsubscribe = function (topic) { return cordova(this, "unsubscribe", { "otherPromise": true }, arguments); };
/**
* Sets whether to enable automatic initialization. If the enable parameter is set to true, the SDK automatically generates an AAID and applies for a token.
* @returns Promise<boolean>
* @param {boolean} enabled Indicates whether to enable automatic initialization.
*/
HmsPushOriginal.prototype.setAutoInitEnabled = function (enabled) { return cordova(this, "setAutoInitEnabled", { "otherPromise": true }, arguments); };
HmsPushOriginal.prototype.getOdid = function () { return cordova(this, "getOdid", { "otherPromise": true }, arguments); };
/**
* This method is used to check whether automatic initialization is enabled.
* @returns Promise<string>
*/
HmsPushOriginal.prototype.isAutoInitEnabled = function () { return cordova(this, "isAutoInitEnabled", { "otherPromise": true }, arguments); };
HmsPushOriginal.prototype.getInitialNotification = function () { return cordova(this, "getInitialNotification", { "otherPromise": true }, arguments); };
HmsPushOriginal.prototype.sendRemoteMessage = function (remoteMessage) { return cordova(this, "sendRemoteMessage", { "otherPromise": true }, arguments); };
HmsPushOriginal.prototype.setBackgroundFile = function (filePath) { return cordova(this, "setBackgroundFile", { "otherPromise": true }, arguments); };
HmsPushOriginal.prototype.setItem = function (key, value) { return cordova(this, "setItem", { "otherPromise": true }, arguments); };
HmsPushOriginal.prototype.getItem = function (key) { return cordova(this, "getItem", { "otherPromise": true }, arguments); };
HmsPushOriginal.prototype.removeItem = function (key) { return cordova(this, "removeItem", { "otherPromise": true }, arguments); };
HmsPushOriginal.prototype.removeBackgroundFile = function () { return cordova(this, "removeBackgroundFile", { "otherPromise": true }, arguments); };
HmsPushOriginal.pluginName = "HmsPush";
HmsPushOriginal.plugin = "@hmscore/cordova-plugin-hms-push";
HmsPushOriginal.pluginRef = "HmsPush";
HmsPushOriginal.repo = "https://github.com/HMS-Core/hms-cordova-plugin";
HmsPushOriginal.platforms = ["Android"];
return HmsPushOriginal;
}(AwesomeCordovaNativePlugin));
var HmsPush = new HmsPushOriginal();
export { HmsPush };
var HmsLocalNotificationOriginal = /** @class */ (function (_super) {
__extends(HmsLocalNotificationOriginal, _super);
function HmsLocalNotificationOriginal() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.Attr = Attr;
_this.Importance = Importance;
_this.Priority = Priority;
_this.RepeatType = RepeatType;
_this.Visibility = Visibility;
return _this;
}
HmsLocalNotificationOriginal.prototype.localNotification = function (localNotification) { return cordova(this, "localNotification", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.localNotificationSchedule = function (localNotification) { return cordova(this, "localNotificationSchedule", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.cancelAllNotifications = function () { return cordova(this, "cancelAllNotifications", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.cancelNotifications = function () { return cordova(this, "cancelNotifications", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.cancelScheduledNotifications = function () { return cordova(this, "cancelScheduledNotifications", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.cancelNotificationsWithId = function (id) { return cordova(this, "cancelNotificationsWithId", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.cancelNotificationsWithIdTag = function (idTag) { return cordova(this, "cancelNotificationsWithIdTag", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.cancelNotificationsWithTag = function (tag) { return cordova(this, "cancelNotificationsWithTag", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.getNotifications = function () { return cordova(this, "getNotifications", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.getScheduledNotifications = function () { return cordova(this, "getScheduledNotifications", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.getChannels = function () { return cordova(this, "getChannels", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.channelExists = function (channelId) { return cordova(this, "channelExists", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.channelBlocked = function (channelId) { return cordova(this, "channelBlocked", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.prototype.deleteChannel = function (channelId) { return cordova(this, "deleteChannel", { "otherPromise": true }, arguments); };
HmsLocalNotificationOriginal.pluginName = "HmsLocalNotification";
HmsLocalNotificationOriginal.plugin = "@hmscore/cordova-plugin-hms-push";
HmsLocalNotificationOriginal.pluginRef = "HmsLocalNotification";
HmsLocalNotificationOriginal.repo = "https://github.com/HMS-Core/hms-cordova-plugin";
HmsLocalNotificationOriginal.platforms = ["Android"];
return HmsLocalNotificationOriginal;
}(AwesomeCordovaNativePlugin));
var HmsLocalNotification = new HmsLocalNotificationOriginal();
export { HmsLocalNotification };
var HmsPushEventOriginal = /** @class */ (function (_super) {
__extends(HmsPushEventOriginal, _super);
function HmsPushEventOriginal() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.REMOTE_DATA_MESSAGE_RECEIVED = "REMOTE_DATA_MESSAGE_RECEIVED";
_this.TOKEN_RECEIVED_EVENT = "TOKEN_RECEIVED_EVENT";
_this.ON_TOKEN_ERROR_EVENT = "ON_TOKEN_ERROR_EVENT";
_this.NOTIFICATION_OPENED_EVENT = "NOTIFICATION_OPENED_EVENT";
_this.LOCAL_NOTIFICATION_ACTION_EVENT = "LOCAL_NOTIFICATION_ACTION_EVENT";
_this.ON_PUSH_MESSAGE_SENT = "ON_PUSH_MESSAGE_SENT";
_this.ON_PUSH_MESSAGE_SENT_ERROR = "ON_PUSH_MESSAGE_SENT_ERROR";
_this.ON_PUSH_MESSAGE_SENT_DELIVERED = "ON_PUSH_MESSAGE_SENT_DELIVERED";
_this.ON_MULTI_SENDER_TOKEN_ERROR_EVENT = "ON_MULTI_SENDER_TOKEN_ERROR_EVENT";
_this.ON_MULTI_SENDER_TOKEN_RECEIVED_EVENT = "ON_MULTI_SENDER_TOKEN_RECEIVED_EVENT";
return _this;
}
HmsPushEventOriginal.prototype.onRemoteMessageReceived = function (callback) { return cordova(this, "onRemoteMessageReceived", { "otherPromise": true }, arguments); };
HmsPushEventOriginal.prototype.onTokenReceived = function (callback) { return cordova(this, "onTokenReceived", { "otherPromise": true }, arguments); };
HmsPushEventOriginal.prototype.onTokenError = function (callback) { return cordova(this, "onTokenError", { "otherPromise": true }, arguments); };
HmsPushEventOriginal.prototype.onPushMessageSent = function (callback) { return cordova(this, "onPushMessageSent", { "otherPromise": true }, arguments); };
HmsPushEventOriginal.prototype.onPushMessageSentError = function (callback) { return cordova(this, "onPushMessageSentError", { "otherPromise": true }, arguments); };
HmsPushEventOriginal.prototype.onPushMessageSentDelivered = function (callback) { return cordova(this, "onPushMessageSentDelivered", { "otherPromise": true }, arguments); };
HmsPushEventOriginal.prototype.onLocalNotificationAction = function (callback) { return cordova(this, "onLocalNotificationAction", { "otherPromise": true }, arguments); };
HmsPushEventOriginal.prototype.onNotificationOpenedApp = function (callback) { return cordova(this, "onNotificationOpenedApp", { "otherPromise": true }, arguments); };
HmsPushEventOriginal.prototype.onMultiSenderTokenReceivedEvent = function (callback) { return cordova(this, "onMultiSenderTokenReceivedEvent", { "otherPromise": true }, arguments); };
HmsPushEventOriginal.prototype.onMultiSenderTokenErrorEvent = function (callback) { return cordova(this, "onMultiSenderTokenErrorEvent", { "otherPromise": true }, arguments); };
HmsPushEventOriginal.pluginName = "HmsPushEvent";
HmsPushEventOriginal.plugin = "@hmscore/cordova-plugin-hms-push";
HmsPushEventOriginal.pluginRef = "HmsPushEvent";
HmsPushEventOriginal.repo = "https://github.com/HMS-Core/hms-cordova-plugin";
HmsPushEventOriginal.platforms = ["Android"];
return HmsPushEventOriginal;
}(AwesomeCordovaNativePlugin));
var HmsPushEvent = new HmsPushEventOriginal();
export { HmsPushEvent };
var HmsPushProfileOriginal = /** @class */ (function (_super) {
__extends(HmsPushProfileOriginal, _super);
function HmsPushProfileOriginal() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.HUAWEI_PROFILE = 1;
_this.CUSTOM_PROFILE = 2;
_this.UNDEFINED_PROFILE = -1;
return _this;
}
/**
*
*/
HmsPushProfileOriginal.prototype.isSupportProfile = function () { return cordova(this, "isSupportProfile", { "otherPromise": true }, arguments); };
HmsPushProfileOriginal.prototype.addProfile = function (type, profileId) { return cordova(this, "addProfile", { "otherPromise": true }, arguments); };
HmsPushProfileOriginal.prototype.addProfileWithSubjectId = function (subjectId, type, profileId) { return cordova(this, "addProfileWithSubjectId", { "otherPromise": true }, arguments); };
HmsPushProfileOriginal.prototype.deleteProfile = function (profileId) { return cordova(this, "deleteProfile", { "otherPromise": true }, arguments); };
HmsPushProfileOriginal.prototype.deleteProfileWithSubjectId = function (subjectId, profileId) { return cordova(this, "deleteProfileWithSubjectId", { "otherPromise": true }, arguments); };
HmsPushProfileOriginal.pluginName = "HmsPushProfile";
HmsPushProfileOriginal.plugin = "@hmscore/cordova-plugin-hms-push";
HmsPushProfileOriginal.pluginRef = "HmsPushProfile";
HmsPushProfileOriginal.repo = "https://github.com/HMS-Core/hms-cordova-plugin";
HmsPushProfileOriginal.platforms = ["Android"];
return HmsPushProfileOriginal;
}(AwesomeCordovaNativePlugin));
var HmsPushProfile = new HmsPushProfileOriginal();
export { HmsPushProfile };
export var HmsPushResultCode;
(function (HmsPushResultCode) {
// Success
HmsPushResultCode["SUCCESS"] = "0";
// Error
HmsPushResultCode["ERROR"] = "-1";
// Bundle is null, exception
HmsPushResultCode["NULL_BUNDLE"] = "333";
// You do not have a token. Apply for a token.
HmsPushResultCode["ERROR_NO_TOKEN"] = "907122030";
// The current network is unavailable. Check the network connection.
HmsPushResultCode["ERROR_NO_NETWORK"] = "907122031";
// The token has expired. Delete the token and apply for a new one.
HmsPushResultCode["ERROR_TOKEN_INVALID"] = "907122032";
// If the Push service is unavailable, contact Huawei technical support.
HmsPushResultCode["ERROR_SERVICE_NOT_AVAILABLE"] = "907122046";
// If the Push server returns an error, contact Huawei technical support.
HmsPushResultCode["ERROR_PUSH_SERVER"] = "907122047";
// Unknown error. Contact Huawei technical support.
HmsPushResultCode["ERROR_UNKNOWN"] = "907122045";
// The number of subscribed topics exceeds 2000.
HmsPushResultCode["ERROR_TOPIC_EXCEED"] = "907122034";
// Failed to send the subscription topic. Contact Huawei technical support.
HmsPushResultCode["ERROR_TOPIC_SEND"] = "907122035";
// Push rights are not enabled. Enable the service and set push service parameters at AppGallery Connect.
HmsPushResultCode["ERROR_NO_RIGHT"] = "907122036";
// Failed to apply for the token. Contact Huawei technical support.
HmsPushResultCode["ERROR_GET_TOKEN_ERR"] = "907122037";
// No storage location is selected for the application or the storage location is invalid.
HmsPushResultCode["ERROR_STORAGE_LOCATION_EMPTY"] = "907122038";
// Failed to apply for a token. Cross-region token application is not allowed.
HmsPushResultCode["ERROR_NOT_ALLOW_CROSS_APPLY"] = "907122053";
// The message body size exceeds the maximum.
HmsPushResultCode["ERROR_SIZE"] = "907122041";
// The message contains invalid parameters.
HmsPushResultCode["ERROR_INVALID_PARAMETERS"] = "907122042";
// The number of sent messages reaches the upper limit. The messages will be discarded.
HmsPushResultCode["ERROR_TOO_MANY_MESSAGES"] = "907122043";
// The message lifetime expires before the message is successfully sent to the APP server.
HmsPushResultCode["ERROR_TTL_EXCEEDED"] = "907122044";
// Huawei Mobile Services (APK) can't connect Huawei Push Kit.
HmsPushResultCode["ERROR_HMS_CLIENT_API"] = "907122048";
// The current EMUI version is too early to use the capability.
HmsPushResultCode["ERROR_OPERATION_NOT_SUPPORTED"] = "907122049";
// The operation cannot be performed in the main thread.
HmsPushResultCode["ERROR_MAIN_THREAD"] = "907122050";
// The device certificate authentication fails.
HmsPushResultCode["ERROR_HMS_DEVICE_AUTH_FAILED_SELF_MAPPING"] = "907122051";
// Failed to bind the service.
HmsPushResultCode["ERROR_BIND_SERVICE_SELF_MAPPING"] = "907122052";
// The SDK is being automatically initialized. Try again later.
HmsPushResultCode["ERROR_AUTO_INITIALIZING"] = "907122054";
/*The input parameter is incorrect. Check whether the related configuration information is correct.
* Example: app_id in the agconnect - services.json file;
* Check whether the build.gradle file is configured with the certificate signature.
*/
HmsPushResultCode["ERROR_ARGUMENTS_INVALID"] = "907135000";
// Internal Push error. Contact Huawei technical support engineers.
HmsPushResultCode["ERROR_INTERNAL_ERROR"] = "907135001";
// The service does not exist. The invoked interface does not exist.
HmsPushResultCode["ERROR_NAMING_INVALID"] = "907135002";
// The ApiClient object is invalid.
HmsPushResultCode["ERROR_CLIENT_API_INVALID"] = "907135003";
// Invoking AIDL times out. Contact Huawei technical support.
HmsPushResultCode["ERROR_EXECUTE_TIMEOUT"] = "907135004";
// The current area does not support this service.
HmsPushResultCode["ERROR_NOT_IN_SERVICE"] = "907135005";
// If the AIDL connection session is invalid, contact Huawei technical support.
HmsPushResultCode["ERROR_SESSION_INVALID"] = "907135006";
// An error occurred when invoking an unspecified API.
HmsPushResultCode["ERROR_API_NOT_SPECIFIED"] = "1002";
/* Failed to invoke the gateway to query the application scope.
* Check whether the current app has been created and enabled in AppGallery Connect.
* If yes, contact Huawei technical support.
*/
HmsPushResultCode["ERROR_GET_SCOPE_ERROR"] = "907135700";
/* Scope is not configured on the AppGallery Connect.
* Check whether the current app has been created and enabled in AppGallery Connect.
* If yes, contact Huawei technical support.
*/
HmsPushResultCode["ERROR_SCOPE_LIST_EMPTY"] = "907135701";
/* The certificate fingerprint is not configured on the AppGallery Connect.
* 1. Check whether your phone can access the Internet.
* 2. Check whether the correct certificate fingerprint is configured in AppGallery Connect. For details, see AppGallery Connect configuration in Development Preparations.
* 3. If the check result is correct, contact Huawei technical support.
*/
HmsPushResultCode["ERROR_CERT_FINGERPRINT_EMPTY"] = "907135702";
// Permission is not configured on the AppGallery Connect.
HmsPushResultCode["ERROR_PERMISSION_LIST_EMPTY"] = "907135703";
// The authentication information of the application does not exist.
HmsPushResultCode["ERROR_AUTH_INFO_NOT_EXIST"] = "6002";
// An error occurred during certificate fingerprint verification. Check whether the correct certificate fingerprint is configured in AppGallery Connect. For details, see AppGallery Connect configuration in Development Preparations.
HmsPushResultCode["ERROR_CERT_FINGERPRINT_ERROR"] = "6003";
// Interface authentication: The permission does not exist and is not applied for in AppGallery Connect.
HmsPushResultCode["ERROR_PERMISSION_NOT_EXIST"] = "6004";
// Interface authentication: unauthorized.
HmsPushResultCode["ERROR_PERMISSION_NOT_AUTHORIZED"] = "6005";
// Interface authentication: The authorization expires.
HmsPushResultCode["ERROR_PERMISSION_EXPIRED"] = "6006";
})(HmsPushResultCode || (HmsPushResultCode = {}));
export var Attr;
(function (Attr) {
Attr["id"] = "id";
Attr["message"] = "message";
Attr["fireDate"] = "fireDate";
Attr["title"] = "title";
Attr["ticker"] = "ticker";
Attr["showWhen"] = "showWhen";
Attr["autoCancel"] = "autoCancel";
Attr["largeIcon"] = "largeIcon";
Attr["largeIconUrl"] = "largeIconUrl";
Attr["smallIcon"] = "smallIcon";
Attr["bigText"] = "bigText";
Attr["subText"] = "subText";
Attr["bigPictureUrl"] = "bigPictureUrl";
Attr["shortcutId"] = "shortcutId";
Attr["number"] = "number";
Attr["channelId"] = "channelId";
Attr["channelName"] = "channelName";
Attr["channelDescription"] = "channelDescription";
Attr["color"] = "color";
Attr["group"] = "group";
Attr["groupSummary"] = "groupSummary";
Attr["playSound"] = "playSound";
Attr["soundName"] = "soundName";
Attr["vibrate"] = "vibrate";
Attr["vibrateDuration"] = "vibrateDuration";
Attr["actions"] = "actions";
Attr["invokeApp"] = "invokeApp";
Attr["tag"] = "tag";
Attr["repeatType"] = "repeatType";
Attr["repeatTime"] = "repeatTime";
Attr["ongoing"] = "ongoing";
Attr["allowWhileIdle"] = "allowWhileIdle";
Attr["dontNotifyInForeground"] = "dontNotifyInForeground";
Attr["priority"] = "priority";
Attr["importance"] = "importance";
Attr["visibility"] = "visibility";
Attr["data"] = "data";
})(Attr || (Attr = {}));
export var Importance;
(function (Importance) {
Importance["MAX"] = "max";
Importance["HIGH"] = "high";
Importance["DEFAULT"] = "default";
Importance["LOW"] = "low";
Importance["MIN"] = "min";
Importance["NONE"] = "none";
Importance["UNSPECIFIED"] = "unspecified";
})(Importance || (Importance = {}));
export var Priority;
(function (Priority) {
Priority["MAX"] = "max";
Priority["HIGH"] = "high";
Priority["DEFAULT"] = "default";
Priority["LOW"] = "low";
Priority["MIN"] = "min";
})(Priority || (Priority = {}));
export var RepeatType;
(function (RepeatType) {
RepeatType["HOUR"] = "hour";
RepeatType["MINUTE"] = "minute";
RepeatType["DAY"] = "day";
RepeatType["WEEK"] = "week";
RepeatType["CUSTOM_TIME"] = "custom_time";
})(RepeatType || (RepeatType = {}));
export var Visibility;
(function (Visibility) {
Visibility["PUBLIC"] = "public";
Visibility["SECRET"] = "secret";
Visibility["PRIVATE"] = "private";
})(Visibility || (Visibility = {}));
export var RemoteMessageBuilder;
(function (RemoteMessageBuilder) {
RemoteMessageBuilder["TO"] = "to";
RemoteMessageBuilder["MESSAGE_ID"] = "messageId";
RemoteMessageBuilder["MESSAGE_TYPE"] = "messageType";
RemoteMessageBuilder["TTL"] = "ttl";
RemoteMessageBuilder["COLLAPSE_KEY"] = "collapseKey";
RemoteMessageBuilder["RECEIPT_MODE"] = "receiptMode";
RemoteMessageBuilder["SEND_MODE"] = "sendMode";
RemoteMessageBuilder["DATA"] = "data";
})(RemoteMessageBuilder || (RemoteMessageBuilder = {}));
var CordovaRemoteMessage = /** @class */ (function () {
function CordovaRemoteMessage(options) {
if (options === void 0) { options = {}; }
this.remoteMsg = options;
}
/*
* parse all element,unordered
*/
CordovaRemoteMessage.prototype.parseMsgAllAttribute = function () {
var pushResult = "";
for (var key in this.remoteMsg) {
pushResult = pushResult + key + " : " + this.remoteMsg[key] + "\n";
}
return pushResult;
};
/*
* getCollapseKey() Obtains the classification identifier (collapse key) of a message.
*/
CordovaRemoteMessage.prototype.getCollapseKey = function () {
return this.remoteMsg[CordovaRemoteMessage.COLLAPSEKEY];
};
/*
* getData() Obtains valid content data of a message.
*/
CordovaRemoteMessage.prototype.getData = function () {
return this.remoteMsg[CordovaRemoteMessage.DATA];
};
/*
* getDataOfMap() a message map.
*/
CordovaRemoteMessage.prototype.getDataOfMap = function () {
return this.remoteMsg[CordovaRemoteMessage.DATAOFMAP];
};
/*
* getMessageId() Obtains the ID of a message.
*/
CordovaRemoteMessage.prototype.getMessageId = function () {
return this.remoteMsg[CordovaRemoteMessage.MESSAGEID];
};
/*
* getMessageType() Obtains the type of a message.
*/
CordovaRemoteMessage.prototype.getMessageType = function () {
return this.remoteMsg[CordovaRemoteMessage.MESSAGETYPE];
};
/*
* getOriginalUrgency() Obtains the original priority of a message.
*/
CordovaRemoteMessage.prototype.getOriginalUrgency = function () {
return this.remoteMsg[CordovaRemoteMessage.ORIGINALURGENCY];
};
/*
* getUrgency() Obtains priority of a message.
*/
CordovaRemoteMessage.prototype.getUrgency = function () {
return this.remoteMsg[CordovaRemoteMessage.URGENCY];
};
/*
* getTtl() Obtains valid getTtl of a message.
*/
CordovaRemoteMessage.prototype.getTtl = function () {
return this.remoteMsg[CordovaRemoteMessage.TTL];
};
/*
* getSentTime() Obtains the time when a message is sent from the server.
*/
CordovaRemoteMessage.prototype.getSentTime = function () {
return this.remoteMsg[CordovaRemoteMessage.SENTTIME];
};
/*
* getTo() Obtains the recipient of a message.
*/
CordovaRemoteMessage.prototype.getTo = function () {
return this.remoteMsg[CordovaRemoteMessage.TO];
};
/*
* getFrom() Obtains the sender of a message.
*/
CordovaRemoteMessage.prototype.getFrom = function () {
return this.remoteMsg[CordovaRemoteMessage.FROM];
};
/*
* getToken() Obtains valid token
*/
CordovaRemoteMessage.prototype.getToken = function () {
return this.remoteMsg[CordovaRemoteMessage.TOKEN];
};
CordovaRemoteMessage.prototype.getAnalyticInfo = function () {
return this.remoteMsg[CordovaRemoteMessage.ANALYTICINFO];
};
CordovaRemoteMessage.prototype.getAnalyticInfoMap = function () {
return this.remoteMsg[CordovaRemoteMessage.ANALYTICINFOMAP];
};
/*
* Notification:getTitle() Obtains the title of a message
*/
CordovaRemoteMessage.prototype.getNotificationTitle = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.TITLE];
};
/*
* Notification:getTitleLocalizationKey() Obtains the key of the displayed title of a notification message
*/
CordovaRemoteMessage.prototype.getTitleLocalizationKey = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.TITLELOCALIZATIONKEY];
};
/*
* Notification:getTitleLocalizationArgs() Obtains variable parameters of the displayed title of a message
*/
CordovaRemoteMessage.prototype.getTitleLocalizationArgs = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.TITLELOCALIZATIONARGS];
};
/*
* Notification:getBodyLocalizationKey() Obtains the key of the displayed content of a message
*/
CordovaRemoteMessage.prototype.getBodyLocalizationKey = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.BODYLOCALIZATIONKEY];
};
/*
* Notification:getBodyLocalizationArgs() Obtains variable parameters of the displayed content of a message
*/
CordovaRemoteMessage.prototype.getBodyLocalizationArgs = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.BODYLOCALIZATIONARGS];
};
/*
* Notification:getBody() Obtains the body of a message
*/
CordovaRemoteMessage.prototype.getBody = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.BODY];
};
/*
* Notification:getIcon() Obtains the icon of a message
*/
CordovaRemoteMessage.prototype.getIcon = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.ICON];
};
/*
* Notification:getSound() Obtains the sound from a message
*/
CordovaRemoteMessage.prototype.getSound = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.SOUND];
};
/*
* Notification:getTag() Obtains the tag from a message for message overwriting
*/
CordovaRemoteMessage.prototype.getTag = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.TAG];
};
/*
* Notification:getColor() Obtains the colors of icons in a message
*/
CordovaRemoteMessage.prototype.getColor = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.COLOR];
};
/*
* Notification:getClickAction() Obtains actions triggered by message tapping
*/
CordovaRemoteMessage.prototype.getClickAction = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.CLICKACTION];
};
/*
* Notification:getChannelId() Obtains IDs of channels that support the display of messages
*/
CordovaRemoteMessage.prototype.getChannelId = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.CHANNELID];
};
/*
* Notification:getImageUrl() Obtains the image URL from a message
*/
CordovaRemoteMessage.prototype.getImageUrl = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.IMAGEURL];
};
/*
* Notification:getLink() Obtains the URL to be accessed from a message
*/
CordovaRemoteMessage.prototype.getLink = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.LINK];
};
/*
* Notification:getNotifyId() Obtains the unique ID of a message
*/
CordovaRemoteMessage.prototype.getNotifyId = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.NOTIFYID];
};
/*
* Notification:getWhen()
*/
CordovaRemoteMessage.prototype.getWhen = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.WHEN];
};
/*
* Notification:getLightSettings()
*/
CordovaRemoteMessage.prototype.getLightSettings = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.LIGHTSETTINGS];
};
/*
* Notification:getBadgeNumber()
*/
CordovaRemoteMessage.prototype.getBadgeNumber = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.BADGENUMBER];
};
/*
* Notification:getImportance()
*/
CordovaRemoteMessage.prototype.getImportance = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.IMPORTANCE];
};
/*
* Notification:getTicker()
*/
CordovaRemoteMessage.prototype.getTicker = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.TICKER];
};
/*
* Notification:getVibrateConfig()
*/
CordovaRemoteMessage.prototype.getVibrateConfig = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.VIBRATECONFIG];
};
/*
* Notification:getVisibility()
*/
CordovaRemoteMessage.prototype.getVisibility = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.VISIBILITY];
};
/*
* Notification:getIntentUri()
*/
CordovaRemoteMessage.prototype.getIntentUri = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.INTENTURI];
};
/*
* Notification:isAutoCancel()
*/
CordovaRemoteMessage.prototype.isAutoCancel = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.ISAUTOCANCEL];
};
/*
* Notification:getIntentUri()
*/
CordovaRemoteMessage.prototype.isLocalOnly = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.ISLOCALONLY];
};
/*
* Notification:isDefaultLight()
*/
CordovaRemoteMessage.prototype.isDefaultLight = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.ISDEFAULTLIGHT];
};
/*
* Notification:isDefaultSound()
*/
CordovaRemoteMessage.prototype.isDefaultSound = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.ISDEFAULTSOUND];
};
/*
* Notification:isDefaultVibrate()
*/
CordovaRemoteMessage.prototype.isDefaultVibrate = function () {
return this.remoteMsg[CordovaRemoteMessage.NOTIFICATION.ISDEFAULTVIBRATE];
};
CordovaRemoteMessage.INSTANCE_ID_SCOPE = "HCM";
CordovaRemoteMessage.PRIORITY_UNKNOWN = 0;
CordovaRemoteMessage.PRIORITY_HIGH = 1;
CordovaRemoteMessage.PRIORITY_NORMAL = 2;
CordovaRemoteMessage.COLLAPSEKEY = "collapseKey";
CordovaRemoteMessage.DATA = "data";
CordovaRemoteMessage.DATAOFMAP = "dataOfMap";
CordovaRemoteMessage.MESSAGEID = "messageId";
CordovaRemoteMessage.MESSAGETYPE = "messageType";
CordovaRemoteMessage.ORIGINALURGENCY = "originalUrgency";
CordovaRemoteMessage.URGENCY = "urgency";
CordovaRemoteMessage.TTL = "ttl";
CordovaRemoteMessage.SENTTIME = "sentTime";
CordovaRemoteMessage.TO = "to";
CordovaRemoteMessage.FROM = "from";
CordovaRemoteMessage.TOKEN = "token";
CordovaRemoteMessage.ANALYTICINFO = "analyticInfo";
CordovaRemoteMessage.ANALYTICINFOMAP = "analyticInfoMap";
CordovaRemoteMessage.NOTIFICATION = {
TITLE: "title",
TITLELOCALIZATIONKEY: "titleLocalizationKey",
TITLELOCALIZATIONARGS: "titleLocalizationArgs",
BODYLOCALIZATIONKEY: "bodyLocalizationKey",
BODYLOCALIZATIONARGS: "bodyLocalizationArgs",
BODY: "body",
ICON: "icon",
SOUND: "Sound",
TAG: "Tag",
COLOR: "Color",
CLICKACTION: "ClickAction",
CHANNELID: "ChannelId",
IMAGEURL: "ImageUrl",
LINK: "Link",
NOTIFYID: "NotifyId",
WHEN: "When",
LIGHTSETTINGS: "LightSettings",
BADGENUMBER: "BadgeNumber",
IMPORTANCE: "Importance",
TICKER: "Ticker",
VIBRATECONFIG: "vibrateConfig",
VISIBILITY: "visibility",
INTENTURI: "intentUri",
ISAUTOCANCEL: "isAutoCancel",
ISLOCALONLY: "isLocalOnly",
ISDEFAULTLIGHT: "isDefaultLight",
ISDEFAULTSOUND: "isDefaultSound",
IS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