Skip to content

Commit

Permalink
fix: gist migration and crash fix (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahroz16 committed Jul 12, 2023
1 parent 9c9837c commit 01a3074
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
"react-native": "src/index",
"source": "src/index",
"expoVersion": "",
"cioNativeiOSSdkVersion": "= 2.7.1",
"cioNativeiOSSdkVersion": "= 2.7.2",
"files": [
"src",
"lib",
Expand Down
18 changes: 9 additions & 9 deletions src/CustomerIOPushMessaging.tsx
Expand Up @@ -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);
}

/**
Expand All @@ -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';

Check warning on line 95 in src/CustomerIOPushMessaging.tsx

View workflow job for this annotation

GitHub Actions / eslint results

src/CustomerIOPushMessaging.tsx#L95

[eqeqeq] Expected '===' and instead saw '=='.
}
}

Expand Down

0 comments on commit 01a3074

Please sign in to comment.