pushwoosh-cordova-plugin 8.1.2 → 8.2.3
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/README.md +3 -3
- package/README_PGB.md +1 -1
- package/package.json +1 -1
- package/plugin.xml +10 -9
- package/src/android/src/com/pushwoosh/plugin/pushnotifications/PushNotifications.java +6 -0
- package/src/ios/PushNotification.m +7 -0
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h +11 -1
- package/src/ios/Pushwoosh.framework/Versions/A/libPushwoosh.a +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/Info.plist +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxAttachmentViewController.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxMessageViewCell.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxViewController.nib +0 -0
- package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PWIInboxStyle.h +6 -0
- package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PWIInboxUI.h +5 -0
- package/src/ios/PushwooshInboxUI.framework/Versions/A/libPushwooshInboxUI.a +0 -0
- package/www/PushNotification.js +5 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxAttachmentViewController.nib/objects-13.0+.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxAttachmentViewController.nib/runtime.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxMessageViewCell.nib/objects-13.0+.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxMessageViewCell.nib/runtime.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxViewController.nib/objects-13.0+.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxViewController.nib/runtime.nib +0 -0
package/README.md
CHANGED
|
@@ -14,13 +14,13 @@ Cross-Platform push notifications by Pushwoosh for Cordova / PhoneGap
|
|
|
14
14
|
Using npm (requires cordova 7.0+):
|
|
15
15
|
|
|
16
16
|
```
|
|
17
|
-
cordova plugin add pushwoosh-cordova-plugin@8.
|
|
17
|
+
cordova plugin add pushwoosh-cordova-plugin@8.2.3
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Using git:
|
|
21
21
|
|
|
22
22
|
```
|
|
23
|
-
cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#8.
|
|
23
|
+
cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#8.2.3
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
#### Phonegap
|
|
@@ -28,7 +28,7 @@ cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#8.
|
|
|
28
28
|
Using npm (requires phonegap 7.1+):
|
|
29
29
|
|
|
30
30
|
```
|
|
31
|
-
cordova plugin add pushwoosh-cordova-plugin@8.
|
|
31
|
+
cordova plugin add pushwoosh-cordova-plugin@8.2.3
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
### Guide
|
package/README_PGB.md
CHANGED
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="pushwoosh-cordova-plugin" version="8.
|
|
2
|
+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="pushwoosh-cordova-plugin" version="8.2.3">
|
|
3
3
|
|
|
4
4
|
<name>Pushwoosh</name>
|
|
5
5
|
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
<source-file src="src/android/src/com/pushwoosh/plugin/internal/PhonegapPluginProvider.java"
|
|
56
56
|
target-dir="src/com/pushwoosh/plugin/internal" />
|
|
57
57
|
|
|
58
|
-
<framework src="com.google.firebase:firebase-core:(+,
|
|
59
|
-
<framework src="com.google.firebase:firebase-messaging:(+,
|
|
58
|
+
<framework src="com.google.firebase:firebase-core:(+,19.0.99]" />
|
|
59
|
+
<framework src="com.google.firebase:firebase-messaging:(+,22.0.99]" />
|
|
60
60
|
|
|
61
61
|
<framework src="com.android.support:support-v4:27.+" />
|
|
62
62
|
<framework src="com.android.support:appcompat-v7:27.+" />
|
|
@@ -65,12 +65,13 @@
|
|
|
65
65
|
<framework src="com.android.support.constraint:constraint-layout:1.0.2" />
|
|
66
66
|
<framework src="com.github.bumptech.glide:glide:4.7.1" />
|
|
67
67
|
<framework src="org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.60" />
|
|
68
|
-
<framework src="com.pushwoosh:pushwoosh:6.
|
|
69
|
-
<framework src="com.pushwoosh:pushwoosh-amazon:6.
|
|
70
|
-
<framework src="com.pushwoosh:pushwoosh-firebase:6.
|
|
71
|
-
<framework src="com.pushwoosh:pushwoosh-badge:6.
|
|
72
|
-
<framework src="com.pushwoosh:pushwoosh-inbox:6.
|
|
73
|
-
<framework src="com.pushwoosh:pushwoosh-inbox-ui:6.
|
|
68
|
+
<framework src="com.pushwoosh:pushwoosh:6.3.6"/>
|
|
69
|
+
<framework src="com.pushwoosh:pushwoosh-amazon:6.3.6"/>
|
|
70
|
+
<framework src="com.pushwoosh:pushwoosh-firebase:6.3.6"/>
|
|
71
|
+
<framework src="com.pushwoosh:pushwoosh-badge:6.3.6"/>
|
|
72
|
+
<framework src="com.pushwoosh:pushwoosh-inbox:6.3.6"/>
|
|
73
|
+
<framework src="com.pushwoosh:pushwoosh-inbox-ui:6.3.6"/>
|
|
74
|
+
<framework src="com.pushwoosh:pushwoosh-huawei:6.3.6"/>
|
|
74
75
|
</platform>
|
|
75
76
|
|
|
76
77
|
<!-- ios -->
|
|
@@ -653,6 +653,12 @@ public class PushNotifications extends CordovaPlugin {
|
|
|
653
653
|
return false;
|
|
654
654
|
}
|
|
655
655
|
|
|
656
|
+
@CordovaMethod
|
|
657
|
+
public boolean enableHuaweiPushNotifications(JSONArray data, final CallbackContext callbackContext) {
|
|
658
|
+
Pushwoosh.getInstance().enableHuaweiPushNotifications();
|
|
659
|
+
return true;
|
|
660
|
+
}
|
|
661
|
+
|
|
656
662
|
|
|
657
663
|
@Override
|
|
658
664
|
public boolean execute(String action, JSONArray data, CallbackContext callbackId)
|
|
@@ -493,6 +493,13 @@ static PushNotification *pw_PushNotificationPlugin;
|
|
|
493
493
|
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
+
- (void)enableHuaweiPushNotifications:(CDVInvokedUrlCommand *)command {
|
|
497
|
+
// Stub
|
|
498
|
+
|
|
499
|
+
CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
|
|
500
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
501
|
+
}
|
|
502
|
+
|
|
496
503
|
- (UIImage *)imageFromInboxStyleDict:(NSDictionary *)dict forKey:(NSString *)key {
|
|
497
504
|
NSObject *object = dict[key];
|
|
498
505
|
if (object != nil && [object isKindOfClass:[NSString class]]) {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
#endif
|
|
20
20
|
|
|
21
|
-
#define PUSHWOOSH_VERSION @"6.
|
|
21
|
+
#define PUSHWOOSH_VERSION @"6.3.1"
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
|
|
@@ -430,6 +430,16 @@ Unregisters from push notifications.
|
|
|
430
430
|
*/
|
|
431
431
|
- (void)mergeUserId:(NSString *)oldUserId to:(NSString *)newUserId doMerge:(BOOL)doMerge completion:(void (^)(NSError *error))completion;
|
|
432
432
|
|
|
433
|
+
/**
|
|
434
|
+
Starts communication with Pushwoosh server.
|
|
435
|
+
*/
|
|
436
|
+
- (void)startServerCommunication;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
Stops communication with Pushwoosh server.
|
|
440
|
+
*/
|
|
441
|
+
- (void)stopServerCommunication;
|
|
442
|
+
|
|
433
443
|
/**
|
|
434
444
|
Process URL of some deep link. Primarly used for register test devices.
|
|
435
445
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -26,6 +26,9 @@ typedef NSString * (^PWIDateFormatterBlock)(NSDate *date, NSObject *owner);
|
|
|
26
26
|
//! The default text color
|
|
27
27
|
@property (nonatomic, readwrite) UIColor *defaultTextColor;
|
|
28
28
|
|
|
29
|
+
//! The text color of a read notification
|
|
30
|
+
@property (nonatomic, readwrite) UIColor *readTextColor;
|
|
31
|
+
|
|
29
32
|
//! The default background color
|
|
30
33
|
@property (nonatomic, readwrite) UIColor *backgroundColor;
|
|
31
34
|
|
|
@@ -53,6 +56,9 @@ typedef NSString * (^PWIDateFormatterBlock)(NSDate *date, NSObject *owner);
|
|
|
53
56
|
//! The color of message titles
|
|
54
57
|
@property (nonatomic, readwrite) UIColor *titleColor;
|
|
55
58
|
|
|
59
|
+
//! The title color for read notifications
|
|
60
|
+
@property (nonatomic, readwrite) UIColor *readTitleColor;
|
|
61
|
+
|
|
56
62
|
//! The color of messages descriptions
|
|
57
63
|
@property (nonatomic, readwrite) UIColor *descriptionColor;
|
|
58
64
|
|
|
@@ -31,4 +31,9 @@
|
|
|
31
31
|
*/
|
|
32
32
|
+ (PWIInboxViewController *)createInboxControllerWithStyle:(PWIInboxStyle *)style;
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
@return PWIInboxViewController with a specified style and height of table view
|
|
36
|
+
*/
|
|
37
|
+
+ (PWIInboxViewController *)createInboxControllerWithStyle:(PWIInboxStyle *)style andContentHeight:(CGFloat)contentHeight;
|
|
38
|
+
|
|
34
39
|
@end
|
|
Binary file
|
package/www/PushNotification.js
CHANGED
|
@@ -554,4 +554,9 @@ PushNotification.prototype.isAvailableGDPR = function(success) {
|
|
|
554
554
|
return exec(success, null, "PushNotification", "isAvailableGDPR", []);
|
|
555
555
|
};
|
|
556
556
|
|
|
557
|
+
// Enable Huawei push notifications in Android
|
|
558
|
+
PushNotification.prototype.enableHuaweiPushNotifications = function() {
|
|
559
|
+
exec(null, null, "PushNotification", "enableHuaweiPushNotifications", []);
|
|
560
|
+
}
|
|
561
|
+
|
|
557
562
|
module.exports = new PushNotification();
|
package/src/ios/PushwooshInboxBundle.bundle/PWIInboxAttachmentViewController.nib/objects-13.0+.nib
DELETED
|
Binary file
|
package/src/ios/PushwooshInboxBundle.bundle/PWIInboxAttachmentViewController.nib/runtime.nib
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|