pushwoosh-react-native-plugin 6.1.20 → 6.1.21

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/index.d.ts CHANGED
@@ -22,6 +22,7 @@ declare module 'pushwoosh-react-native-plugin' {
22
22
  bannerUrl?: string;
23
23
  customData?: Object;
24
24
  isRead?: boolean;
25
+ actionParams?: Object;
25
26
  isActionPerformed?: boolean;
26
27
  }
27
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pushwoosh-react-native-plugin",
3
- "version": "6.1.20",
3
+ "version": "6.1.21",
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.20"
3
+ s.version = "6.1.21"
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.6.10"
40
+ pushwoosh = "6.6.14"
41
41
  }
42
42
 
43
43
  dependencies {
@@ -200,6 +200,7 @@ public final class ConversionUtil {
200
200
  .put("type", message.getType().getCode())
201
201
  .put("bannerUrl", message.getBannerUrl())
202
202
  .put("isRead",message.isRead())
203
+ .put("actionParams",message.getActionParams())
203
204
  .put("isActionPerformed",message.isActionPerformed());
204
205
 
205
206
  Bundle bundle = JsonUtils.jsonStringToBundle( message.getActionParams());
@@ -90,6 +90,8 @@
90
90
 
91
91
  + (instancetype)sharedManager;
92
92
 
93
+ + (void)updateInAppManagerInstance;
94
+
93
95
  #if TARGET_OS_IOS || TARGET_OS_OSX
94
96
  /**
95
97
  Resets capping of the Pushwoosh out-of-the-box In-App solutions.
@@ -18,7 +18,7 @@
18
18
 
19
19
  #endif
20
20
 
21
- #define PUSHWOOSH_VERSION @"6.4.11"
21
+ #define PUSHWOOSH_VERSION @"6.5.0"
22
22
 
23
23
 
24
24
  @class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
@@ -506,6 +506,47 @@ Unregisters from push notifications.
506
506
  - (BOOL)handleOpenURL:(NSURL * _Nonnull)url;
507
507
  #endif
508
508
 
509
+ /**
510
+ Sends live activity token to the server.
511
+ Call this method when you create a live activity.
512
+
513
+ Example:
514
+ @code
515
+ do {
516
+ let activity = try Activity<PushwooshAppAttributes>.request(
517
+ attributes: attributes,
518
+ contentState: contentState,
519
+ pushType: .token)
520
+ for await data in activity.pushTokenUpdates {
521
+ let token = data.map {String(format: "%02x", $0)}.joined()
522
+ try await Pushwoosh.sharedInstance().startLiveActivity(withToken: token)
523
+ return token
524
+ }
525
+ } catch (let error) {
526
+ print(error.localizedDescription)
527
+ return nil
528
+ }
529
+ @endcode
530
+ */
531
+ - (void)startLiveActivityWithToken:(NSString * _Nonnull)token;
532
+ - (void)startLiveActivityWithToken:(NSString * _Nonnull)token completion:(void (^ _Nullable)(NSError * _Nullable error))completion;
533
+
534
+ /**
535
+ Call this method when you finish working with the live activity.
536
+
537
+ Example:
538
+ @code
539
+ func end(activity: Activity<PushwooshAppAttributes>) {
540
+ Task {
541
+ await activity.end(dismissalPolicy: .immediate)
542
+ try await Pushwoosh.sharedInstance().stopLiveActivity()
543
+ }
544
+ }
545
+ @endcode
546
+ */
547
+ - (void)stopLiveActivity;
548
+ - (void)stopLiveActivityWithCompletion:(void (^ _Nullable)(NSError * _Nullable error))completion;
549
+
509
550
  @end
510
551
 
511
552
  /**
Binary file