pushwoosh-cordova-plugin 8.3.4 → 8.3.5
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
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.3.
|
|
17
|
+
cordova plugin add pushwoosh-cordova-plugin@8.3.5
|
|
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.3.
|
|
23
|
+
cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#8.3.5
|
|
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.3.
|
|
31
|
+
cordova plugin add pushwoosh-cordova-plugin@8.3.5
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
### Guide
|
package/README_PGB.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pushwoosh-cordova-plugin",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.5",
|
|
4
4
|
"description": "\n This plugin allows you to send and receive push notifications. Powered by Pushwoosh (www.pushwoosh.com).\n ",
|
|
5
5
|
"main":"www/PushNotification.js",
|
|
6
6
|
"typings":"types/index.d.ts",
|
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.3.
|
|
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.3.5">
|
|
3
3
|
|
|
4
4
|
<name>Pushwoosh</name>
|
|
5
5
|
|
|
@@ -77,13 +77,13 @@
|
|
|
77
77
|
<framework src="com.android.support.constraint:constraint-layout:1.0.2" />
|
|
78
78
|
<framework src="com.github.bumptech.glide:glide:4.7.1" />
|
|
79
79
|
<framework src="org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.60" />
|
|
80
|
-
<framework src="com.pushwoosh:pushwoosh:6.
|
|
81
|
-
<framework src="com.pushwoosh:pushwoosh-amazon:6.
|
|
82
|
-
<framework src="com.pushwoosh:pushwoosh-firebase:6.
|
|
83
|
-
<framework src="com.pushwoosh:pushwoosh-badge:6.
|
|
84
|
-
<framework src="com.pushwoosh:pushwoosh-inbox:6.
|
|
85
|
-
<framework src="com.pushwoosh:pushwoosh-inbox-ui:6.
|
|
86
|
-
<framework src="com.pushwoosh:pushwoosh-huawei:6.
|
|
80
|
+
<framework src="com.pushwoosh:pushwoosh:6.6.1"/>
|
|
81
|
+
<framework src="com.pushwoosh:pushwoosh-amazon:6.6.1"/>
|
|
82
|
+
<framework src="com.pushwoosh:pushwoosh-firebase:6.6.1"/>
|
|
83
|
+
<framework src="com.pushwoosh:pushwoosh-badge:6.6.1"/>
|
|
84
|
+
<framework src="com.pushwoosh:pushwoosh-inbox:6.6.1"/>
|
|
85
|
+
<framework src="com.pushwoosh:pushwoosh-inbox-ui:6.6.1"/>
|
|
86
|
+
<framework src="com.pushwoosh:pushwoosh-huawei:6.6.1"/>
|
|
87
87
|
</platform>
|
|
88
88
|
|
|
89
89
|
<!-- ios -->
|
|
@@ -98,6 +98,12 @@
|
|
|
98
98
|
<param name="ios-package" value="PushNotification"/>
|
|
99
99
|
</feature>
|
|
100
100
|
</config-file>
|
|
101
|
+
|
|
102
|
+
<config-file target="*-Info.plist" parent="UIBackgroundModes">
|
|
103
|
+
<array>
|
|
104
|
+
<string>remote-notification</string>
|
|
105
|
+
</array>
|
|
106
|
+
</config-file>
|
|
101
107
|
|
|
102
108
|
<config-file target="*-Info.plist" parent="Pushwoosh_LOG_LEVEL">
|
|
103
109
|
<string>$LOG_LEVEL</string>
|
|
@@ -113,23 +119,22 @@
|
|
|
113
119
|
<config-file parent="aps-environment" target="*/Entitlements-Release.plist">
|
|
114
120
|
<string>production</string>
|
|
115
121
|
</config-file>
|
|
122
|
+
|
|
123
|
+
<podspec>
|
|
124
|
+
<config>
|
|
125
|
+
<source url="https://github.com/CocoaPods/Specs.git"/>
|
|
126
|
+
</config>
|
|
127
|
+
<pods use-frameworks="true">
|
|
128
|
+
<pod name="PushwooshXCFramework" />
|
|
129
|
+
</pods>
|
|
130
|
+
</podspec>
|
|
131
|
+
<framework src="Pods/PushwooshXCFramework/XCFramework/Pushwoosh.xcframework" embed="true" />
|
|
116
132
|
|
|
117
133
|
<header-file src="src/ios/PushNotification.h" target-dir="ios"/>
|
|
118
134
|
<source-file src="src/ios/PushNotification.m" target-dir="ios"/>
|
|
119
135
|
<header-file src="src/ios/PWBackward.h" target-dir="ios"/>
|
|
120
136
|
<source-file src="src/ios/PWBackward.m" target-dir="ios"/>
|
|
121
|
-
|
|
122
|
-
<header-file src="src/ios/Pushwoosh.framework/Versions/A/Headers/PWInAppManager.h" target-dir="ios"/>
|
|
123
|
-
<header-file src="src/ios/Pushwoosh.framework/Versions/A/Headers/PWGDPRManager.h" target-dir="ios"/>
|
|
124
|
-
<header-file src="src/ios/PWLog.h" target-dir="ios"/>
|
|
125
|
-
<header-file src="src/ios/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h" target-dir="ios"/>
|
|
126
|
-
<header-file src="src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PushwooshInboxUI.h" target-dir="ios"/>
|
|
127
|
-
<header-file src="src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PWIInboxStyle.h" target-dir="ios"/>
|
|
128
|
-
<header-file src="src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PWIInboxUI.h" target-dir="ios"/>
|
|
129
|
-
|
|
130
|
-
<source-file src="src/ios/Pushwoosh.framework/Versions/A/libPushwoosh.a" framework="true"/>
|
|
131
|
-
<source-file src="src/ios/PushwooshInboxUI.framework/Versions/A/libPushwooshInboxUI.a" framework="true"/>
|
|
132
|
-
<resource-file src="src/ios/PushwooshInboxBundle.bundle" />
|
|
137
|
+
<resource-file src="src/ios/" />
|
|
133
138
|
</platform>
|
|
134
139
|
|
|
135
140
|
<!-- wp8 -->
|
|
@@ -20,6 +20,7 @@ import android.webkit.JavascriptInterface;
|
|
|
20
20
|
|
|
21
21
|
import com.pushwoosh.GDPRManager;
|
|
22
22
|
import com.pushwoosh.Pushwoosh;
|
|
23
|
+
import com.pushwoosh.RegisterForPushNotificationsResultData;
|
|
23
24
|
import com.pushwoosh.badge.PushwooshBadge;
|
|
24
25
|
import com.pushwoosh.exception.GetTagsException;
|
|
25
26
|
import com.pushwoosh.exception.PushwooshException;
|
|
@@ -175,11 +176,11 @@ public class PushNotifications extends CordovaPlugin {
|
|
|
175
176
|
private boolean registerDevice(JSONArray data, CallbackContext callbackContext) {
|
|
176
177
|
try {
|
|
177
178
|
callbackIds.put("registerDevice", callbackContext);
|
|
178
|
-
Pushwoosh.getInstance().registerForPushNotifications(new Callback<
|
|
179
|
+
Pushwoosh.getInstance().registerForPushNotifications(new Callback<RegisterForPushNotificationsResultData, RegisterForPushNotificationsException>() {
|
|
179
180
|
@Override
|
|
180
|
-
public void process(@NonNull final Result<
|
|
181
|
-
if (result.isSuccess()) {
|
|
182
|
-
doOnRegistered(result.getData());
|
|
181
|
+
public void process(@NonNull final Result<RegisterForPushNotificationsResultData, RegisterForPushNotificationsException> result) {
|
|
182
|
+
if (result.isSuccess() && result.getData != null) {
|
|
183
|
+
doOnRegistered(result.getData().getToken());
|
|
183
184
|
} else if (result.getException() != null) {
|
|
184
185
|
doOnRegisteredError(result.getException().getMessage());
|
|
185
186
|
}
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
#import <Foundation/Foundation.h>
|
|
13
13
|
#import <Cordova/CDV.h>
|
|
14
14
|
#import <Cordova/CDVPlugin.h>
|
|
15
|
-
#import
|
|
15
|
+
#import <Pushwoosh/Pushwoosh.h>
|
|
16
|
+
#import <Pushwoosh/PushNotificationManager.h>
|
|
16
17
|
|
|
17
18
|
@interface PushNotification : CDVPlugin <PushNotificationDelegate>
|
|
18
19
|
|
|
@@ -12,11 +12,10 @@
|
|
|
12
12
|
|
|
13
13
|
#import "PushNotification.h"
|
|
14
14
|
#import "PWLog.h"
|
|
15
|
-
#import
|
|
16
|
-
#import
|
|
17
|
-
#import
|
|
15
|
+
#import <PushwooshInboxUI/PushwooshInboxUI.h>
|
|
16
|
+
#import <Pushwoosh/PWGDPRManager.h>
|
|
17
|
+
#import <Pushwoosh/PWInAppManager.h>
|
|
18
18
|
#import "PWBackward.h"
|
|
19
|
-
#import "Pushwoosh.h"
|
|
20
19
|
|
|
21
20
|
#import "AppDelegate.h"
|
|
22
21
|
|