pushwoosh-cordova-plugin 8.3.37 → 8.3.39

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,8 @@ 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.39
62
+ - 8.3.38
61
63
  - 8.3.37
62
64
  - 8.3.36
63
65
  - 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.37
17
+ cordova plugin add pushwoosh-cordova-plugin@8.3.39
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.37
23
+ cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#8.3.39
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.37",
3
+ "version": "8.3.39",
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.37">
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.39">
3
3
 
4
4
  <name>Pushwoosh</name>
5
5
 
@@ -77,13 +77,13 @@
77
77
  <framework src="com.github.bumptech.glide:glide:4.10.0" />
78
78
  <framework src="org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.60" />
79
79
 
80
- <framework src="com.pushwoosh:pushwoosh:6.7.24"/>
81
- <framework src="com.pushwoosh:pushwoosh-amazon:6.7.24"/>
82
- <framework src="com.pushwoosh:pushwoosh-firebase:6.7.24"/>
83
- <framework src="com.pushwoosh:pushwoosh-badge:6.7.24"/>
84
- <framework src="com.pushwoosh:pushwoosh-inbox:6.7.24"/>
85
- <framework src="com.pushwoosh:pushwoosh-inbox-ui:6.7.24"/>
86
- <framework src="com.pushwoosh:pushwoosh-huawei:6.7.24"/>
80
+ <framework src="com.pushwoosh:pushwoosh:6.7.30"/>
81
+ <framework src="com.pushwoosh:pushwoosh-amazon:6.7.30"/>
82
+ <framework src="com.pushwoosh:pushwoosh-firebase:6.7.30"/>
83
+ <framework src="com.pushwoosh:pushwoosh-badge:6.7.30"/>
84
+ <framework src="com.pushwoosh:pushwoosh-inbox:6.7.30"/>
85
+ <framework src="com.pushwoosh:pushwoosh-inbox-ui:6.7.30"/>
86
+ <framework src="com.pushwoosh:pushwoosh-huawei:6.7.30"/>
87
87
  </platform>
88
88
 
89
89
  <!-- ios -->
@@ -125,7 +125,7 @@
125
125
  <source url="https://github.com/CocoaPods/Specs.git"/>
126
126
  </config>
127
127
  <pods use-frameworks="true">
128
- <pod name="PushwooshXCFramework" spec="6.8.5" />
128
+ <pod name="PushwooshXCFramework" spec="6.9.3" />
129
129
  <pod name="PushwooshInboxUIXCFramework" spec="6.1.2" />
130
130
  </pods>
131
131
  </podspec>
@@ -1071,12 +1071,14 @@ public class PushNotifications extends CordovaPlugin {
1071
1071
  }
1072
1072
 
1073
1073
  @CordovaMethod
1074
- private boolean setApiToken(String token) {
1075
- if (token != null) {
1074
+ private boolean setApiToken(JSONArray data, final CallbackContext callbackContextn) {
1075
+ try {
1076
+ String token = data.getString(0);
1076
1077
  Pushwoosh.getInstance().setApiToken(token);
1077
- return true;
1078
+ } catch (JSONException e) {
1079
+ PWLog.error(TAG, "No parameters passed (missing parameters)", e);
1078
1080
  }
1079
- return false;
1081
+ return true;
1080
1082
  }
1081
1083
 
1082
1084
  private static JSONObject inboxMessageToJson(InboxMessage message) {