pushwoosh-cordova-plugin 8.3.46 → 8.3.48
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 +2 -2
- package/package.json +1 -1
- package/plugin.xml +9 -9
- package/src/android/add-android-voip.gradle +1 -1
- package/src/android/src/com/pushwoosh/plugin/pushnotifications/PushwooshNotificationServiceExtension.java +2 -2
- package/src/android/src/com/pushwoosh/plugin/pushnotifications/calls/PushwooshCallsAdapter.java +7 -3
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.48
|
|
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.48
|
|
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.48",
|
|
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.48">
|
|
3
3
|
|
|
4
4
|
<name>Pushwoosh</name>
|
|
5
5
|
|
|
@@ -95,13 +95,13 @@
|
|
|
95
95
|
<framework src="org.jetbrains.kotlin:kotlin-stdlib:1.1.60" />
|
|
96
96
|
<framework src="com.google.android.material:material:1.12.0"/>
|
|
97
97
|
|
|
98
|
-
<framework src="com.pushwoosh:pushwoosh:6.7.
|
|
99
|
-
<framework src="com.pushwoosh:pushwoosh-amazon:6.7.
|
|
100
|
-
<framework src="com.pushwoosh:pushwoosh-firebase:6.7.
|
|
101
|
-
<framework src="com.pushwoosh:pushwoosh-badge:6.7.
|
|
102
|
-
<framework src="com.pushwoosh:pushwoosh-inbox:6.7.
|
|
103
|
-
<framework src="com.pushwoosh:pushwoosh-inbox-ui:6.7.
|
|
104
|
-
<framework src="com.pushwoosh:pushwoosh-huawei:6.7.
|
|
98
|
+
<framework src="com.pushwoosh:pushwoosh:6.7.41"/>
|
|
99
|
+
<framework src="com.pushwoosh:pushwoosh-amazon:6.7.41"/>
|
|
100
|
+
<framework src="com.pushwoosh:pushwoosh-firebase:6.7.41"/>
|
|
101
|
+
<framework src="com.pushwoosh:pushwoosh-badge:6.7.41"/>
|
|
102
|
+
<framework src="com.pushwoosh:pushwoosh-inbox:6.7.41"/>
|
|
103
|
+
<framework src="com.pushwoosh:pushwoosh-inbox-ui:6.7.41"/>
|
|
104
|
+
<framework src="com.pushwoosh:pushwoosh-huawei:6.7.41"/>
|
|
105
105
|
</platform>
|
|
106
106
|
|
|
107
107
|
<!-- ios -->
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<source url="https://github.com/CocoaPods/Specs.git"/>
|
|
144
144
|
</config>
|
|
145
145
|
<pods use-frameworks="true">
|
|
146
|
-
<pod name="PushwooshXCFramework" spec="6.
|
|
146
|
+
<pod name="PushwooshXCFramework" spec="6.11.3" />
|
|
147
147
|
<pod name="PushwooshInboxUIXCFramework" spec="6.1.2" />
|
|
148
148
|
</pods>
|
|
149
149
|
</podspec>
|
|
@@ -16,7 +16,7 @@ def callsSrc = pluginDir ? new File(pluginDir, 'src/android/src/com/pushwoosh/pl
|
|
|
16
16
|
def applyVoip = {
|
|
17
17
|
if (voipEnabled) {
|
|
18
18
|
println "[${pluginId}] PW_VOIP_ANDROID_ENABLED=true — enabling VoIP (dependency + sources)"
|
|
19
|
-
dependencies { implementation "com.pushwoosh:pushwoosh-calls:6.7.
|
|
19
|
+
dependencies { implementation "com.pushwoosh:pushwoosh-calls:6.7.41" }
|
|
20
20
|
if (callsSrc?.exists()) {
|
|
21
21
|
android.sourceSets.main.java.srcDirs += callsSrc
|
|
22
22
|
println "[${pluginId}] Added optional sources: ${callsSrc}"
|
|
@@ -26,13 +26,13 @@ public class PushwooshNotificationServiceExtension extends NotificationServiceEx
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
@Override
|
|
29
|
-
|
|
29
|
+
protected boolean onMessageReceived(final PushMessage pushMessage) {
|
|
30
30
|
PushNotifications.messageReceived(pushMessage.toJson().toString());
|
|
31
31
|
return (!showForegroundPush && !super.onMessageReceived(pushMessage) && isAppOnForeground());
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
@Override
|
|
35
|
-
|
|
35
|
+
protected void onMessageOpened(PushMessage pushMessage) {
|
|
36
36
|
PushNotifications.openPush(pushMessage.toJson().toString());
|
|
37
37
|
}
|
|
38
38
|
}
|
package/src/android/src/com/pushwoosh/plugin/pushnotifications/calls/PushwooshCallsAdapter.java
CHANGED
|
@@ -180,15 +180,19 @@ public class PushwooshCallsAdapter implements CallsAdapter {
|
|
|
180
180
|
PushNotifications.emitVoipEvent("hangup", parseVoIPMessage(voIPMessage));
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
public static void onCreateIncomingConnection(Bundle bundle) {
|
|
184
|
+
PushwooshVoIPMessage voipMessage = new PushwooshVoIPMessage(bundle);
|
|
185
|
+
PushNotifications.emitVoipEvent("voipPushPayload", parseVoIPMessage(voipMessage));
|
|
185
186
|
}
|
|
186
187
|
|
|
187
188
|
private static org.json.JSONObject parseVoIPMessage(PushwooshVoIPMessage message) {
|
|
188
189
|
org.json.JSONObject payload = new org.json.JSONObject();
|
|
189
190
|
try {
|
|
191
|
+
Bundle rawBundle = message.getRawPayload();
|
|
192
|
+
org.json.JSONObject rawPayloadJson = JsonUtils.bundleToJsonWithUserData(rawBundle);
|
|
193
|
+
|
|
190
194
|
payload.put("callerName", message.getCallerName())
|
|
191
|
-
.put("rawPayload",
|
|
195
|
+
.put("rawPayload", rawPayloadJson)
|
|
192
196
|
.put("hasVideo", message.getHasVideo());
|
|
193
197
|
} catch (org.json.JSONException ignored) {}
|
|
194
198
|
return payload;
|