pushwoosh-react-native-plugin 6.1.20 → 6.1.22
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 +1 -0
- package/package.json +1 -1
- package/pushwoosh-react-native-plugin.podspec +2 -2
- package/src/android/build.gradle +7 -7
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/ConversionUtil.java +1 -0
- package/src/ios/PWInAppManager.h +2 -0
- package/src/ios/Pushwoosh.h +42 -1
- package/src/ios/libPushwoosh.a +0 -0
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Pod::Spec.new do |s|
|
|
2
2
|
s.name = "pushwoosh-react-native-plugin"
|
|
3
|
-
s.version = "6.1.
|
|
3
|
+
s.version = "6.1.22"
|
|
4
4
|
s.summary = "React Native Pushwoosh Push Notifications module"
|
|
5
5
|
s.requires_arc = true
|
|
6
6
|
s.author = 'Pushwoosh'
|
|
@@ -8,7 +8,7 @@ Pod::Spec.new do |s|
|
|
|
8
8
|
s.homepage = 'n/a'
|
|
9
9
|
s.source = { :git => "https://github.com/Pushwoosh/pushwoosh-react-native-plugin.git" }
|
|
10
10
|
s.source_files = 'src/ios/PushwooshPlugin/Pushwoosh.{h,m}', 'src/ios/PushwooshPlugin/PWEventDispatcher.{h,m}', 'src/ios/PushwooshPlugin/PWInlineInAppManager.{h,m}'
|
|
11
|
-
s.platform = :ios, "
|
|
11
|
+
s.platform = :ios, "11.0"
|
|
12
12
|
s.xcconfig = {
|
|
13
13
|
"HEADER_SEARCH_PATHS" => "${PODS_ROOT}/Headers/Public/React"
|
|
14
14
|
}
|
package/src/android/build.gradle
CHANGED
|
@@ -7,7 +7,7 @@ buildscript {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
dependencies {
|
|
10
|
-
classpath 'com.android.tools.build:gradle:
|
|
10
|
+
classpath 'com.android.tools.build:gradle:4.1.3'
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -23,10 +23,10 @@ allprojects {
|
|
|
23
23
|
apply plugin: 'com.android.library'
|
|
24
24
|
|
|
25
25
|
android {
|
|
26
|
-
compileSdkVersion
|
|
26
|
+
compileSdkVersion 33
|
|
27
27
|
defaultConfig {
|
|
28
|
-
minSdkVersion
|
|
29
|
-
targetSdkVersion
|
|
28
|
+
minSdkVersion 21
|
|
29
|
+
targetSdkVersion 33
|
|
30
30
|
}
|
|
31
31
|
buildTypes {
|
|
32
32
|
release {
|
|
@@ -37,7 +37,7 @@ android {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
ext {
|
|
40
|
-
pushwoosh = "6.6.
|
|
40
|
+
pushwoosh = "6.6.16"
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
dependencies {
|
|
@@ -49,7 +49,7 @@ dependencies {
|
|
|
49
49
|
implementation "com.pushwoosh:pushwoosh-badge:${pushwoosh}"
|
|
50
50
|
implementation "com.pushwoosh:pushwoosh-inbox:${pushwoosh}"
|
|
51
51
|
implementation "com.pushwoosh:pushwoosh-inbox-ui:${pushwoosh}"
|
|
52
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.
|
|
53
|
-
implementation "com.google.firebase:firebase-messaging:
|
|
52
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.20"
|
|
53
|
+
implementation "com.google.firebase:firebase-messaging:23.1.0"
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -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());
|
package/src/ios/PWInAppManager.h
CHANGED
package/src/ios/Pushwoosh.h
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
#endif
|
|
20
20
|
|
|
21
|
-
#define PUSHWOOSH_VERSION @"6.
|
|
21
|
+
#define PUSHWOOSH_VERSION @"6.5.1"
|
|
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
|
/**
|
package/src/ios/libPushwoosh.a
CHANGED
|
Binary file
|