pushwoosh-react-native-plugin 6.1.14 → 6.1.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pushwoosh-react-native-plugin",
3
- "version": "6.1.14",
3
+ "version": "6.1.15",
4
4
  "description": "This plugin allows you to send and receive push notifications. Powered by Pushwoosh (www.pushwoosh.com).",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = "pushwoosh-react-native-plugin"
3
- s.version = "6.1.14"
3
+ s.version = "6.1.15"
4
4
  s.summary = "React Native Pushwoosh Push Notifications module"
5
5
  s.requires_arc = true
6
6
  s.author = 'Pushwoosh'
@@ -37,7 +37,7 @@ android {
37
37
  }
38
38
 
39
39
  ext {
40
- pushwoosh = "6.5.2"
40
+ pushwoosh = "6.6.0"
41
41
  }
42
42
 
43
43
  evaluationDependsOn(':app')
@@ -15,6 +15,7 @@ import com.facebook.react.bridge.ReactMethod;
15
15
  import com.facebook.react.bridge.ReadableMap;
16
16
  import com.pushwoosh.GDPRManager;
17
17
  import com.pushwoosh.Pushwoosh;
18
+ import com.pushwoosh.RegisterForPushNotificationsResultData;
18
19
  import com.pushwoosh.badge.PushwooshBadge;
19
20
  import com.pushwoosh.exception.GetTagsException;
20
21
  import com.pushwoosh.exception.PushwooshException;
@@ -504,7 +505,7 @@ public class PushwooshPlugin extends ReactContextBaseJavaModule implements Lifec
504
505
  }
505
506
  }
506
507
 
507
- private class RegisterForPushNotificationCallback implements com.pushwoosh.function.Callback<String, RegisterForPushNotificationsException> {
508
+ private class RegisterForPushNotificationCallback implements com.pushwoosh.function.Callback<RegisterForPushNotificationsResultData, RegisterForPushNotificationsException> {
508
509
  private Callback success;
509
510
  private Callback error;
510
511
 
@@ -514,10 +515,10 @@ public class PushwooshPlugin extends ReactContextBaseJavaModule implements Lifec
514
515
  }
515
516
 
516
517
  @Override
517
- public void process(Result<String, RegisterForPushNotificationsException> result) {
518
+ public void process(Result<RegisterForPushNotificationsResultData, RegisterForPushNotificationsException> result) {
518
519
  if (result.isSuccess()) {
519
- if (success != null) {
520
- success.invoke(result.getData());
520
+ if (success != null && result.getData() != null) {
521
+ success.invoke(result.getData().getToken());
521
522
  success = null;
522
523
  }
523
524
  } else if (result.getException() != null) {
@@ -18,7 +18,7 @@
18
18
 
19
19
  #endif
20
20
 
21
- #define PUSHWOOSH_VERSION @"6.4.2"
21
+ #define PUSHWOOSH_VERSION @"6.4.3"
22
22
 
23
23
 
24
24
  @class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Binary file