vibes-react-native 1.1.1 → 1.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.
@@ -29,16 +29,18 @@ import com.vibes.vibes.VibesConfig;
29
29
  import java.util.Map;
30
30
 
31
31
  public class Fms extends FirebaseMessagingService {
32
+ private PushPayloadParser pushModel;
33
+ private RemoteMessage message;
32
34
 
33
35
  @Override
34
36
  public void onMessageReceived(RemoteMessage message) {
35
37
  Log.d(TAG, "Push message received. Processing");
36
- PushPayloadParser pushModel = createPushPayloadParser(message.getData());
38
+ this.message = message;
39
+ this.pushModel = createPushPayloadParser(message.getData());
37
40
 
38
41
  if (!initializeVibes()) {
39
42
  return;
40
43
  }
41
-
42
44
  handleNotification(pushModel, message);
43
45
  }
44
46
 
@@ -84,6 +86,7 @@ public class Fms extends FirebaseMessagingService {
84
86
  .build();
85
87
  Log.d(TAG, "Initializing Vibes with appId=[" + appId + "] and apiUrl=[" + apiUrl + "]");
86
88
  Vibes.initialize(this, config);
89
+ handleNotification(pushModel, message);
87
90
  });
88
91
  }
89
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibes-react-native",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "The React Native plugin for the Vibes Mobile SDKs",
5
5
  "author": "Vibes",
6
6
  "main": "lib/commonjs/index",