pushwoosh-cordova-plugin 8.2.1 → 8.3.1
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 +12 -9
- package/src/android/src/com/pushwoosh/plugin/pushnotifications/PushNotifications.java +4 -6
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h +1 -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/libPushwooshInboxUI.a +0 -0
- package/build.gradle +0 -25
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.3.1
|
|
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.3.1
|
|
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.3.1
|
|
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.3.1">
|
|
3
3
|
|
|
4
4
|
<name>Pushwoosh</name>
|
|
5
5
|
|
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
|
|
27
27
|
<!-- android -->
|
|
28
28
|
<platform name="android">
|
|
29
|
-
|
|
29
|
+
<config-file target="config.xml" parent="/*">
|
|
30
|
+
<preference name="GradlePluginGoogleServicesEnabled" value="true" />
|
|
31
|
+
<preference name="GradlePluginGoogleServicesVersion" value="4.3.10" />
|
|
32
|
+
</config-file>
|
|
30
33
|
|
|
31
34
|
<config-file target="AndroidManifest.xml" parent="/manifest/application">
|
|
32
35
|
<meta-data android:name="com.pushwoosh.log_level" android:value="$LOG_LEVEL" />
|
|
@@ -65,13 +68,13 @@
|
|
|
65
68
|
<framework src="com.android.support.constraint:constraint-layout:1.0.2" />
|
|
66
69
|
<framework src="com.github.bumptech.glide:glide:4.7.1" />
|
|
67
70
|
<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.
|
|
74
|
-
<framework src="com.pushwoosh:pushwoosh-huawei:6.
|
|
71
|
+
<framework src="com.pushwoosh:pushwoosh:6.4.1"/>
|
|
72
|
+
<framework src="com.pushwoosh:pushwoosh-amazon:6.4.1"/>
|
|
73
|
+
<framework src="com.pushwoosh:pushwoosh-firebase:6.4.1"/>
|
|
74
|
+
<framework src="com.pushwoosh:pushwoosh-badge:6.4.1"/>
|
|
75
|
+
<framework src="com.pushwoosh:pushwoosh-inbox:6.4.1"/>
|
|
76
|
+
<framework src="com.pushwoosh:pushwoosh-inbox-ui:6.4.1"/>
|
|
77
|
+
<framework src="com.pushwoosh:pushwoosh-huawei:6.4.1"/>
|
|
75
78
|
</platform>
|
|
76
79
|
|
|
77
80
|
<!-- ios -->
|
|
@@ -300,14 +300,12 @@ public class PushNotifications extends CordovaPlugin {
|
|
|
300
300
|
if (message == null) {
|
|
301
301
|
return false;
|
|
302
302
|
}
|
|
303
|
-
|
|
304
|
-
String userData = params.getString("userData");
|
|
305
|
-
|
|
303
|
+
|
|
306
304
|
Bundle extras = new Bundle();
|
|
307
|
-
if (userData
|
|
308
|
-
extras.putString("u", userData);
|
|
305
|
+
if (params.has("userData")) {
|
|
306
|
+
extras.putString("u", params.getString("userData"));
|
|
309
307
|
}
|
|
310
|
-
|
|
308
|
+
|
|
311
309
|
LocalNotification notification = new LocalNotification.Builder()
|
|
312
310
|
.setMessage(message)
|
|
313
311
|
.setDelay(seconds)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/build.gradle
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
buildscript {
|
|
2
|
-
repositories {
|
|
3
|
-
jcenter()
|
|
4
|
-
maven {
|
|
5
|
-
url "https://maven.google.com"
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
dependencies {
|
|
10
|
-
classpath 'com.android.tools.build:gradle:3.+'
|
|
11
|
-
classpath 'com.google.gms:google-services:4.3.3'
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
cdvPluginPostBuildExtras.add({
|
|
16
|
-
rootProject.subprojects {
|
|
17
|
-
if (name == "app") {
|
|
18
|
-
if (!plugins.hasPlugin('com.google.gms.google-services')) {
|
|
19
|
-
apply {
|
|
20
|
-
plugin com.google.gms.googleservices.GoogleServicesPlugin
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
})
|