react-native-onesignal
Advanced tools
Comparing version 3.2.8 to 3.2.9
23
index.js
@@ -56,3 +56,3 @@ | ||
export default class OneSignal { | ||
static addEventListener(type: any, handler: Function) { | ||
static addEventListener(type, handler) { | ||
if (!checkIfInitialized()) return; | ||
@@ -69,2 +69,6 @@ | ||
if (type == 'opened') { | ||
RNOneSignal.didSetNotificationOpenedHandler(); | ||
} | ||
// Check if there is a cache for this type of event | ||
@@ -107,3 +111,3 @@ var cache = _notificationCache.get(type); | ||
static promptForPushNotificationsWithUserResponse(callback: Function) { | ||
static promptForPushNotificationsWithUserResponse(callback) { | ||
if (!checkIfInitialized()) return; | ||
@@ -162,3 +166,3 @@ | ||
static checkPermissions(callback: Function) { | ||
static checkPermissions(callback) { | ||
if (!checkIfInitialized()) return; | ||
@@ -187,3 +191,3 @@ | ||
static getPermissionSubscriptionState(callback: Function) { | ||
static getPermissionSubscriptionState(callback) { | ||
if (!checkIfInitialized()) return; | ||
@@ -365,2 +369,13 @@ | ||
static setExternalUserId(externalId) { | ||
if (!checkIfInitialized()) return; | ||
RNOneSignal.setExternalUserId(externalId); | ||
} | ||
static removeExternalUserId() { | ||
if (!checkIfInitialized()) return; | ||
RNOneSignal.removeExternalUserId(); | ||
} | ||
} |
{ | ||
"name": "react-native-onesignal", | ||
"version": "3.2.8", | ||
"version": "3.2.9", | ||
"description": "React Native OneSignal Component", | ||
@@ -5,0 +5,0 @@ "main": "index", |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16038549
208
289
4