pushwoosh-cordova-plugin 8.3.37 → 8.3.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,7 @@ body:
|
|
|
58
58
|
label: Your Pushwoosh Cordova plugin version
|
|
59
59
|
description: Your version of the Cordova plugin integrated into the application. You may find it on the [releases page](https://github.com/Pushwoosh/pushwoosh-phonegap-plugin/releases)
|
|
60
60
|
options:
|
|
61
|
+
- 8.3.38
|
|
61
62
|
- 8.3.37
|
|
62
63
|
- 8.3.36
|
|
63
64
|
- 8.3.35
|
package/README.md
CHANGED
|
@@ -14,13 +14,13 @@ Cross-Platform push notifications by Pushwoosh for Cordova / PhoneGap
|
|
|
14
14
|
Using npm:
|
|
15
15
|
|
|
16
16
|
```
|
|
17
|
-
cordova plugin add pushwoosh-cordova-plugin@8.3.
|
|
17
|
+
cordova plugin add pushwoosh-cordova-plugin@8.3.38
|
|
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.38
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
### Guide
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pushwoosh-cordova-plugin",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.38",
|
|
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.38">
|
|
3
3
|
|
|
4
4
|
<name>Pushwoosh</name>
|
|
5
5
|
|
|
@@ -1071,12 +1071,14 @@ public class PushNotifications extends CordovaPlugin {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
1073
|
@CordovaMethod
|
|
1074
|
-
private boolean setApiToken(
|
|
1075
|
-
|
|
1074
|
+
private boolean setApiToken(JSONArray data, final CallbackContext callbackContextn) {
|
|
1075
|
+
try {
|
|
1076
|
+
String token = data.getString(0);
|
|
1076
1077
|
Pushwoosh.getInstance().setApiToken(token);
|
|
1077
|
-
|
|
1078
|
+
} catch (JSONException e) {
|
|
1079
|
+
PWLog.error(TAG, "No parameters passed (missing parameters)", e);
|
|
1078
1080
|
}
|
|
1079
|
-
return
|
|
1081
|
+
return true;
|
|
1080
1082
|
}
|
|
1081
1083
|
|
|
1082
1084
|
private static JSONObject inboxMessageToJson(InboxMessage message) {
|