react-native-netmera 1.7.10 → 1.7.11

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.
@@ -104,6 +104,10 @@ NSDictionary* waitingOnPushDismiss = nil;
104
104
  }
105
105
 
106
106
  + (void)onPushReceive:(NSDictionary *)body {
107
+ if ([[body objectForKey:@"userInfo"] objectForKey:@"_nm"] == nil) {
108
+ return;
109
+ }
110
+
107
111
  if (isReactBridgeInitialized) {
108
112
  [[NSNotificationCenter defaultCenter] postNotificationName:@"onPushReceive" object:nil userInfo:body];
109
113
  } else {
@@ -112,6 +116,10 @@ NSDictionary* waitingOnPushDismiss = nil;
112
116
  }
113
117
 
114
118
  + (void)onPushOpen:(NSDictionary *)body {
119
+ if ([[body objectForKey:@"userInfo"] objectForKey:@"_nm"] == nil) {
120
+ return;
121
+ }
122
+
115
123
  if (isReactBridgeInitialized) {
116
124
  [[NSNotificationCenter defaultCenter] postNotificationName:@"onPushOpen" object:nil userInfo:body];
117
125
  } else {
@@ -120,6 +128,10 @@ NSDictionary* waitingOnPushDismiss = nil;
120
128
  }
121
129
 
122
130
  + (void)onPushDismiss:(NSDictionary *)body {
131
+ if ([[body objectForKey:@"userInfo"] objectForKey:@"_nm"] == nil) {
132
+ return;
133
+ }
134
+
123
135
  if (isReactBridgeInitialized) {
124
136
  [[NSNotificationCenter defaultCenter] postNotificationName:@"onPushDismiss" object:nil userInfo:body];
125
137
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-netmera",
3
- "version": "1.7.10",
3
+ "version": "1.7.11",
4
4
  "description": "Netmera React Native SDK",
5
5
  "main": "index.ts",
6
6
  "author": "netmera",