pushwoosh-react-native-plugin 6.1.36 → 6.1.38

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.
@@ -58,6 +58,8 @@ body:
58
58
  label: Your Pushwoosh React Native Plugin version
59
59
  description: Your React Native Plugin version which was integrated to the app. You may find it on the [releases page](https://github.com/Pushwoosh/pushwoosh-react-native-plugin/releases)
60
60
  options:
61
+ - 6.1.38
62
+ - 6.1.37
61
63
  - 6.1.36
62
64
  - 6.1.35
63
65
  - 6.1.34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pushwoosh-react-native-plugin",
3
- "version": "6.1.36",
3
+ "version": "6.1.38",
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.36"
3
+ s.version = "6.1.38"
4
4
  s.summary = "React Native Pushwoosh Push Notifications module"
5
5
  s.requires_arc = true
6
6
  s.author = 'Pushwoosh'
@@ -15,6 +15,6 @@ Pod::Spec.new do |s|
15
15
  s.static_framework = true
16
16
 
17
17
  s.dependency 'React'
18
- s.dependency 'PushwooshXCFramework', '6.7.13'
18
+ s.dependency 'PushwooshXCFramework', '6.8.5'
19
19
  s.dependency 'PushwooshInboxUIXCFramework'
20
20
  end
@@ -37,7 +37,7 @@ android {
37
37
  }
38
38
 
39
39
  ext {
40
- pushwoosh = "6.7.16"
40
+ pushwoosh = "6.7.24"
41
41
  }
42
42
 
43
43
  dependencies {
@@ -188,6 +188,17 @@ public class PushwooshPlugin extends ReactContextBaseJavaModule implements Lifec
188
188
  }
189
189
  }
190
190
 
191
+ @ReactMethod
192
+ public void addListener(String eventName) {
193
+ // Required for NativeEventEmitter. No need to do anything here.
194
+ }
195
+
196
+ @ReactMethod
197
+ public void removeListeners(Integer count) {
198
+ // Required for NativeEventEmitter. No need to do anything here.
199
+ }
200
+
201
+
191
202
  @ReactMethod
192
203
  public void setEmails(@NonNull ReadableArray emails, final Callback success, final Callback error) {
193
204
  Pushwoosh.getInstance().setEmail(ConversionUtil.messageCodesArrayToArrayList(emails), new com.pushwoosh.function.Callback<Boolean, SetEmailException>() {
@@ -906,7 +906,7 @@ RCT_EXPORT_METHOD(enableHuaweiPushNotifications) {
906
906
  }
907
907
 
908
908
  - (NSArray<NSString *> *)supportedEvents {
909
- return @[ kPushOpenJSEvent ];
909
+ return @[ kPushOpenJSEvent, kPushReceivedJSEvent ];
910
910
  }
911
911
 
912
912
  @end