diff --git a/package.json b/package.json index de1f174b..045f7a48 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "react-native": "src/index", "source": "src/index", "expoVersion": "", - "cioNativeiOSSdkVersion": "= 2.7.1", + "cioNativeiOSSdkVersion": "= 2.7.2", "files": [ "src", "lib", diff --git a/src/CustomerIOPushMessaging.tsx b/src/CustomerIOPushMessaging.tsx index 7b04eb5b..c5ed1533 100644 --- a/src/CustomerIOPushMessaging.tsx +++ b/src/CustomerIOPushMessaging.tsx @@ -71,9 +71,9 @@ class CustomerIOPushMessaging { // through the Google Services API, so there is no need to make a specific call for it. // This method is specific to iOS and works as expected on Android without any additional intervention. if (payload == null || this.isAndroid()) { - return - } - PushMessagingNative.trackNotificationResponseReceived(payload) + return; + } + PushMessagingNative.trackNotificationResponseReceived(payload); } /** @@ -86,13 +86,13 @@ class CustomerIOPushMessaging { // through the Google Services API, so there is no need to make a specific call for it. // This method is specific to iOS and works as expected on Android without any additional intervention. if (payload == null || this.isAndroid()) { - return - } - PushMessagingNative.trackNotificationReceived(payload) + return; + } + PushMessagingNative.trackNotificationReceived(payload); } - - isAndroid() : boolean { - return Platform.OS == "android" + + isAndroid(): boolean { + return Platform.OS == 'android'; } }