onesignal-cordova-plugin
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -400,4 +400,24 @@ /** | ||
}) => void): void; | ||
/** | ||
* Live Activities | ||
*/ | ||
/** | ||
* Enter a live activity | ||
* @param {string} activityId | ||
* @param {string} token | ||
* @param {Function} onSuccess | ||
* @param {Function} onFailure | ||
* @returns void | ||
*/ | ||
enterLiveActivity(activityId: string, token: string, onSuccess?: Function, onFailure?: Function): void; | ||
/** | ||
* Exit a live activity | ||
* @param {string} activityId | ||
* @param {Function} onSuccess | ||
* @param {Function} onFailure | ||
* @returns void | ||
*/ | ||
exitLiveActivity(activityId: string, onSuccess?: Function, onFailure?: Function): void; | ||
} | ||
declare const OneSignal: OneSignalPlugin; | ||
export default OneSignal; |
@@ -755,2 +755,40 @@ "use strict"; | ||
; | ||
/** | ||
* Live Activities | ||
*/ | ||
/** | ||
* Enter a live activity | ||
* @param {string} activityId | ||
* @param {string} token | ||
* @param {Function} onSuccess | ||
* @param {Function} onFailure | ||
* @returns void | ||
*/ | ||
OneSignalPlugin.prototype.enterLiveActivity = function (activityId, token, onSuccess, onFailure) { | ||
if (onSuccess == null) { | ||
onSuccess = function () { }; | ||
} | ||
if (onFailure == null) { | ||
onFailure = function () { }; | ||
} | ||
window.cordova.exec(onSuccess, onFailure, "OneSignalPush", "enterLiveActivity", [activityId, token]); | ||
}; | ||
; | ||
/** | ||
* Exit a live activity | ||
* @param {string} activityId | ||
* @param {Function} onSuccess | ||
* @param {Function} onFailure | ||
* @returns void | ||
*/ | ||
OneSignalPlugin.prototype.exitLiveActivity = function (activityId, onSuccess, onFailure) { | ||
if (onSuccess == null) { | ||
onSuccess = function () { }; | ||
} | ||
if (onFailure == null) { | ||
onFailure = function () { }; | ||
} | ||
window.cordova.exec(onSuccess, onFailure, "OneSignalPush", "exitLiveActivity", [activityId]); | ||
}; | ||
; | ||
return OneSignalPlugin; | ||
@@ -757,0 +795,0 @@ }()); |
{ | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"name": "onesignal-cordova-plugin", | ||
@@ -4,0 +4,0 @@ "cordova_name": "OneSignal Push Notifications", |
@@ -800,2 +800,45 @@ /** | ||
}; | ||
/** | ||
* Live Activities | ||
*/ | ||
/** | ||
* Enter a live activity | ||
* @param {string} activityId | ||
* @param {string} token | ||
* @param {Function} onSuccess | ||
* @param {Function} onFailure | ||
* @returns void | ||
*/ | ||
enterLiveActivity(activityId: string, token: string, onSuccess?: Function, onFailure?: Function): void { | ||
if (onSuccess == null) { | ||
onSuccess = function() {}; | ||
} | ||
if (onFailure == null) { | ||
onFailure = function() {}; | ||
} | ||
window.cordova.exec(onSuccess, onFailure, "OneSignalPush", "enterLiveActivity", [activityId, token]); | ||
}; | ||
/** | ||
* Exit a live activity | ||
* @param {string} activityId | ||
* @param {Function} onSuccess | ||
* @param {Function} onFailure | ||
* @returns void | ||
*/ | ||
exitLiveActivity(activityId: string, onSuccess?: Function, onFailure?: Function): void { | ||
if (onSuccess == null) { | ||
onSuccess = function() {}; | ||
} | ||
if (onFailure == null) { | ||
onFailure = function() {}; | ||
} | ||
window.cordova.exec(onSuccess, onFailure, "OneSignalPush", "exitLiveActivity", [activityId]); | ||
}; | ||
} | ||
@@ -802,0 +845,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
707630
48
3969