@inngageregistry/inngage-react 4.1.0 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Inngage.js
CHANGED
|
@@ -50,9 +50,9 @@ const handleNotificationsPermission = async () => {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
if (!permissionGranted) {
|
|
54
|
-
|
|
55
|
-
}
|
|
53
|
+
// if (!permissionGranted) {
|
|
54
|
+
// return null;
|
|
55
|
+
// }
|
|
56
56
|
return getFirebaseToken();
|
|
57
57
|
};
|
|
58
58
|
const getFirebaseToken = async () => {
|
|
@@ -220,7 +220,6 @@ export const InngageNotificationMessage = (firebaseListenCallback, imageNotifica
|
|
|
220
220
|
if (notificationData.additional_data != null) {
|
|
221
221
|
await AsyncStorage.setItem(KEY_INAPP, toStringValue(notificationData.additional_data));
|
|
222
222
|
}
|
|
223
|
-
currentFirebaseListenCallback?.(notificationData);
|
|
224
223
|
if (notifee) {
|
|
225
224
|
const title = remoteMessage.notification?.title ??
|
|
226
225
|
notificationData.title ??
|
|
@@ -259,6 +258,7 @@ export const InngageNotificationMessage = (firebaseListenCallback, imageNotifica
|
|
|
259
258
|
}
|
|
260
259
|
break;
|
|
261
260
|
case EventType.PRESS:
|
|
261
|
+
currentFirebaseListenCallback?.(notificationData);
|
|
262
262
|
handleNotification(remoteMessage);
|
|
263
263
|
break;
|
|
264
264
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inngageregistry/inngage-react",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"description": "Inngage Plugin for React Native applications for marketing campaign optimization using Push Notification.",
|
|
5
5
|
"author": "Inngage Developer",
|
|
6
6
|
"license": "ISC",
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"prepare": "npm run build",
|
|
33
33
|
"test": "echo \"No tests yet\" && exit 0"
|
|
34
34
|
},
|
|
35
|
-
"dependencies": {},
|
|
36
35
|
"peerDependencies": {
|
|
37
36
|
"@notifee/react-native": ">=7 <10",
|
|
38
37
|
"@react-native-async-storage/async-storage": ">=2.1.0 <3",
|