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
package/src/android/build.gradle
CHANGED
|
@@ -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<
|
|
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<
|
|
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) {
|
package/src/ios/Pushwoosh.h
CHANGED
package/src/ios/libPushwoosh.a
CHANGED
|
Binary file
|