react-native-onesignal
Advanced tools
Comparing version 4.0.0-beta.4 to 4.0.0-beta.5
{ | ||
"name": "react-native-onesignal", | ||
"version": "4.0.0-beta.4", | ||
"version": "4.0.0-beta.5", | ||
"description": "React Native OneSignal SDK", | ||
@@ -5,0 +5,0 @@ "main": "src/index", |
@@ -76,3 +76,3 @@ declare module 'react-native-onesignal' { | ||
export interface NotificationReceivedEvent { | ||
complete : (notification: OSNotification) => void; | ||
complete : (notification?: OSNotification) => void; | ||
getNotification : () => OSNotification; | ||
@@ -79,0 +79,0 @@ }; |
@@ -227,9 +227,9 @@ 'use strict'; | ||
static cancelNotification(id) { | ||
static removeNotification(id) { | ||
if (!checkIfInitialized(RNOneSignal)) return; | ||
if (Platform.OS === 'android') { | ||
RNOneSignal.cancelNotification(id); | ||
RNOneSignal.removeNotification(id); | ||
} else { | ||
console.log("cancelNotification: this function is not supported on iOS"); | ||
console.log("removeNotification: this function is not supported on iOS"); | ||
} | ||
@@ -236,0 +236,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
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
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
22654966