pushwoosh-cordova-plugin 8.3.27 → 8.3.29
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/.github/ISSUE_TEMPLATE/bug_report.yml +136 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +31 -0
- package/.github/ISSUE_TEMPLATE/question.yml +28 -0
- package/README.md +3 -3
- package/README_PGB.md +1 -1
- package/package.json +1 -1
- package/plugin.xml +11 -11
- package/src/ios/PushNotification.m +6 -4
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
name: "🐞 Bug Report"
|
|
2
|
+
description: "Report us a bug"
|
|
3
|
+
title: "[Bug]: "
|
|
4
|
+
labels: ["bug"]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: |
|
|
9
|
+
Thank you for taking the time to create this issue.
|
|
10
|
+
|
|
11
|
+
The more detailed information filled below will help us to investigate the root cause of the issue faster and fix it.
|
|
12
|
+
This form is for Cordova (PhoneGap) plugin only. If this is a bug for another platform or framework — please create the issue in the corresponded [repository](https://github.com/orgs/Pushwoosh/repositories). We appreciate your cooperation!
|
|
13
|
+
- type: checkboxes
|
|
14
|
+
id: rtfm
|
|
15
|
+
attributes:
|
|
16
|
+
label: Documentation
|
|
17
|
+
description: "Have you checked the relevant integration guide: [Integrating Cordova plugin](https://docs.pushwoosh.com/platform-docs/pushwoosh-sdk/cross-platform-frameworks/cordova/integrating-cordova-plugin) which describes implementation process of the Pushwoosh SDK to your app and follow all the necessary steps?"
|
|
18
|
+
options:
|
|
19
|
+
- label: I've checked the guide, but it doesn't help me to resolve the issue.
|
|
20
|
+
required: true
|
|
21
|
+
- type: textarea
|
|
22
|
+
id: description
|
|
23
|
+
attributes:
|
|
24
|
+
label: Description
|
|
25
|
+
description: Short description of the issue. You can add screenshots and screencast to illustrate it.
|
|
26
|
+
placeholder: "Example: When receiving a push with Rich Media in a closed app, Rich Media is not shown."
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
|
29
|
+
- type: dropdown
|
|
30
|
+
id: severity
|
|
31
|
+
attributes:
|
|
32
|
+
label: Bug severity
|
|
33
|
+
description: |
|
|
34
|
+
How do you rate the severity of this bug?
|
|
35
|
+
For an objective assessment, please take into account how often this bug occurs in everyday app interaction, how serious the consequences of its occurrence (crash, warning, etc.), number of affected users, enviroment where it occurs (stage, production. etc.).
|
|
36
|
+
options:
|
|
37
|
+
- Low
|
|
38
|
+
- Normal
|
|
39
|
+
- High
|
|
40
|
+
- Urgent
|
|
41
|
+
validations:
|
|
42
|
+
required: true
|
|
43
|
+
- type: textarea
|
|
44
|
+
id: repro-steps
|
|
45
|
+
attributes:
|
|
46
|
+
label: Steps to Reproduce
|
|
47
|
+
description: Describe all the steps needed to reproduce the issue. If an issue is only reproducible under particular circumstances, put all required details here. E.g., if a push is not shown only for a specific API request, provide the full request body. Or, if an issue is reproducible with a particular Rich Media, deep link, etc. — specify it.
|
|
48
|
+
placeholder: |
|
|
49
|
+
1. Open the app;
|
|
50
|
+
2. Switch it to the background;
|
|
51
|
+
3. Received notification with "root_params" causes the app to crash.
|
|
52
|
+
This happens only if dependency XYZ v.1.2.3 is installed
|
|
53
|
+
validations:
|
|
54
|
+
required: true
|
|
55
|
+
- type: dropdown
|
|
56
|
+
id: affected-version
|
|
57
|
+
attributes:
|
|
58
|
+
label: Your Pushwoosh Cordova plugin version
|
|
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
|
+
options:
|
|
61
|
+
- 8.3.28
|
|
62
|
+
- 8.3.27
|
|
63
|
+
- 8.3.26
|
|
64
|
+
- 8.3.25
|
|
65
|
+
- 8.3.24
|
|
66
|
+
- 8.3.23
|
|
67
|
+
- 8.3.22
|
|
68
|
+
- 8.3.21
|
|
69
|
+
- 8.3.20
|
|
70
|
+
- 8.3.19
|
|
71
|
+
- 8.3.18
|
|
72
|
+
- 8.3.17
|
|
73
|
+
- 8.3.16
|
|
74
|
+
- 8.3.15
|
|
75
|
+
- 8.3.14
|
|
76
|
+
- 8.3.13
|
|
77
|
+
- 8.3.12
|
|
78
|
+
- 8.3.11
|
|
79
|
+
- 8.3.10
|
|
80
|
+
- 8.3.9
|
|
81
|
+
- 8.3.8
|
|
82
|
+
- 8.3.7
|
|
83
|
+
- 8.3.6
|
|
84
|
+
- 8.3.5
|
|
85
|
+
- 8.3.4
|
|
86
|
+
- 8.3.3
|
|
87
|
+
- 8.3.2
|
|
88
|
+
- 8.3.1
|
|
89
|
+
- 8.3.0
|
|
90
|
+
- Other — specify it in the description
|
|
91
|
+
validations:
|
|
92
|
+
required: true
|
|
93
|
+
- type: input
|
|
94
|
+
id: framework-version
|
|
95
|
+
attributes:
|
|
96
|
+
label: cordova package version
|
|
97
|
+
description: Your cordova framework version
|
|
98
|
+
validations:
|
|
99
|
+
required: true
|
|
100
|
+
- type: input
|
|
101
|
+
id: last-worked
|
|
102
|
+
attributes:
|
|
103
|
+
label: Last worked Pushwoosh Cordova plugin version (if any)
|
|
104
|
+
description: Is there a version that worked well? If so, please specify.
|
|
105
|
+
- type: checkboxes
|
|
106
|
+
id: platforms-affected
|
|
107
|
+
attributes:
|
|
108
|
+
label: Affected platforms
|
|
109
|
+
description: Select the platforms on which the issue occurs. This helps us determine whether the root cause is core plugin or platform specific.
|
|
110
|
+
options:
|
|
111
|
+
- label: Android
|
|
112
|
+
- label: iOS
|
|
113
|
+
validations:
|
|
114
|
+
required: true
|
|
115
|
+
- type: textarea
|
|
116
|
+
id: platform-versions
|
|
117
|
+
attributes:
|
|
118
|
+
label: Affected OS versions and/or devices
|
|
119
|
+
description: Please specify device models and custom distributions (if any) on which this issue occurs. If the issue occurs when building, then specify the target platform.
|
|
120
|
+
placeholder: |
|
|
121
|
+
E.g. Android 13 on a Google Pixel 3a XL,
|
|
122
|
+
iOS 17.0.3 on an iPhone 14
|
|
123
|
+
MIUI 14.0.8.0 on Xiaomi 13 Ultra, etc.
|
|
124
|
+
validations:
|
|
125
|
+
required: true
|
|
126
|
+
- type: textarea
|
|
127
|
+
id: workaround
|
|
128
|
+
attributes:
|
|
129
|
+
label: Workaround
|
|
130
|
+
description: Have you found a workaround for this issue? Please tell us — this may help other people to continue their work while waiting for this issue to be resolved.
|
|
131
|
+
- type: textarea
|
|
132
|
+
id: logs
|
|
133
|
+
attributes:
|
|
134
|
+
label: Relevant log output
|
|
135
|
+
description: After reproducing the issue, copy device console logs and paste them here "as is". This code block will be formatted automatically, so no additional formatting is needed. If the issue occurs when building, then provide us building logs here.
|
|
136
|
+
render: shell
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: "💡 Feature request"
|
|
2
|
+
description: "Suggest us a good idea or improvement"
|
|
3
|
+
title: "[Feature]: "
|
|
4
|
+
labels: ["feature"]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: |
|
|
9
|
+
Thank you for taking the time to create this request.
|
|
10
|
+
|
|
11
|
+
This form is for Cordova (PhoneGap) Plugin only. If this is a feature for another platform or framework — please create it in the corresponded [repository](https://github.com/orgs/Pushwoosh/repositories). We appreciate your cooperation!
|
|
12
|
+
|
|
13
|
+
- type: textarea
|
|
14
|
+
id: description
|
|
15
|
+
attributes:
|
|
16
|
+
label: Description
|
|
17
|
+
description: Please tell us what's on your mind. You can add screenshots and screencast to illustrate your request.
|
|
18
|
+
validations:
|
|
19
|
+
required: true
|
|
20
|
+
|
|
21
|
+
- type: textarea
|
|
22
|
+
id: suggestions
|
|
23
|
+
attributes:
|
|
24
|
+
label: Sugeestions
|
|
25
|
+
description: |
|
|
26
|
+
If you know how you can achieve what you want or you have any information that may help us to achieve this, you can add it here.
|
|
27
|
+
For example, links to repositories, discussion threads, documentation, code samples, etc.
|
|
28
|
+
|
|
29
|
+
- type: markdown
|
|
30
|
+
attributes:
|
|
31
|
+
value: Thank you for your feedback!
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: "❓ Question"
|
|
2
|
+
description: "Ask us a question"
|
|
3
|
+
title: "[Question]: "
|
|
4
|
+
labels: ["question"]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: |
|
|
9
|
+
Thank you for your question!
|
|
10
|
+
|
|
11
|
+
This form is for Cordova (PhoneGap) Plugin only. If this is a question for another platform or framework — please create it in the corresponded [repository](https://github.com/orgs/Pushwoosh/repositories). We appreciate your cooperation!
|
|
12
|
+
|
|
13
|
+
- type: checkboxes
|
|
14
|
+
id: rtfm
|
|
15
|
+
attributes:
|
|
16
|
+
label: Documentation
|
|
17
|
+
description: "Have you checked the relevant integration guide: [Integrating Cordova Plugin](https://docs.pushwoosh.com/platform-docs/pushwoosh-sdk/cross-platform-frameworks/cordova/integrating-cordova-plugin) which describes implementation process of the Pushwoosh SDK to your app and follow all the necessary steps?"
|
|
18
|
+
options:
|
|
19
|
+
- label: I've checked the guide, but I didn't find the information I needed there.
|
|
20
|
+
required: true
|
|
21
|
+
|
|
22
|
+
- type: textarea
|
|
23
|
+
id: question
|
|
24
|
+
attributes:
|
|
25
|
+
label: Question
|
|
26
|
+
description: How can we help you? Do you have any questions about the integration of the SDK or how it works? You can add screenshots and screencast to illustrate your request.
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
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.29
|
|
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.29
|
|
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.29
|
|
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.29",
|
|
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.29">
|
|
3
3
|
|
|
4
4
|
<name>Pushwoosh</name>
|
|
5
5
|
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
<issue>https://github.com/Pushwoosh/pushwoosh-phonegap-plugin/issues</issue>
|
|
18
18
|
|
|
19
19
|
<preference name="LOG_LEVEL" default="DEBUG" />
|
|
20
|
-
<preference name="IOS_FOREGROUND_ALERT_TYPE" default="
|
|
21
|
-
<preference name="ANDROID_FOREGROUND_PUSH" default="
|
|
20
|
+
<preference name="IOS_FOREGROUND_ALERT_TYPE" default="ALERT" />
|
|
21
|
+
<preference name="ANDROID_FOREGROUND_PUSH" default="true" />
|
|
22
22
|
|
|
23
23
|
<js-module src="www/PushNotification.js" name="PushNotification">
|
|
24
24
|
<clobbers target="plugins.pushNotification" />
|
|
@@ -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.
|
|
81
|
-
<framework src="com.pushwoosh:pushwoosh-amazon:6.7.
|
|
82
|
-
<framework src="com.pushwoosh:pushwoosh-firebase:6.7.
|
|
83
|
-
<framework src="com.pushwoosh:pushwoosh-badge:6.7.
|
|
84
|
-
<framework src="com.pushwoosh:pushwoosh-inbox:6.7.
|
|
85
|
-
<framework src="com.pushwoosh:pushwoosh-inbox-ui:6.7.
|
|
86
|
-
<framework src="com.pushwoosh:pushwoosh-huawei:6.7.
|
|
80
|
+
<framework src="com.pushwoosh:pushwoosh:6.7.12"/>
|
|
81
|
+
<framework src="com.pushwoosh:pushwoosh-amazon:6.7.12"/>
|
|
82
|
+
<framework src="com.pushwoosh:pushwoosh-firebase:6.7.12"/>
|
|
83
|
+
<framework src="com.pushwoosh:pushwoosh-badge:6.7.12"/>
|
|
84
|
+
<framework src="com.pushwoosh:pushwoosh-inbox:6.7.12"/>
|
|
85
|
+
<framework src="com.pushwoosh:pushwoosh-inbox-ui:6.7.12"/>
|
|
86
|
+
<framework src="com.pushwoosh:pushwoosh-huawei:6.7.12"/>
|
|
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.
|
|
128
|
+
<pod name="PushwooshXCFramework" spec="6.7.0" />
|
|
129
129
|
<pod name="PushwooshInboxUIXCFramework" spec="6.1.2" />
|
|
130
130
|
</pods>
|
|
131
131
|
</podspec>
|
|
@@ -214,9 +214,11 @@ API_AVAILABLE(ios(10))
|
|
|
214
214
|
(void (^)(UNNotificationPresentationOptions options))completionHandler
|
|
215
215
|
API_AVAILABLE(ios(10.0)) {
|
|
216
216
|
|
|
217
|
-
if ([
|
|
217
|
+
if ([PushNotificationManager pushManager].showPushnotificationAlert) {
|
|
218
|
+
completionHandler(UNNotificationPresentationOptionBadge | UNNotificationPresentationOptionAlert | UNNotificationPresentationOptionSound);
|
|
219
|
+
} else if ([self isRemoteNotification:notification] && [PWMessage isPushwooshMessage:notification.request.content.userInfo]) {
|
|
218
220
|
completionHandler(UNNotificationPresentationOptionNone);
|
|
219
|
-
} else if ([
|
|
221
|
+
} else if ([notification.request.content.userInfo objectForKey:@"pw_push"] == nil) {
|
|
220
222
|
completionHandler(UNNotificationPresentationOptionBadge | UNNotificationPresentationOptionAlert | UNNotificationPresentationOptionSound);
|
|
221
223
|
} else {
|
|
222
224
|
completionHandler(UNNotificationPresentationOptionNone);
|
|
@@ -368,8 +370,8 @@ API_AVAILABLE(ios(10.0)) {
|
|
|
368
370
|
}
|
|
369
371
|
|
|
370
372
|
- (void)setShowPushnotificationAlert:(CDVInvokedUrlCommand *)command {
|
|
371
|
-
|
|
372
|
-
self.pushManager.showPushnotificationAlert = showPushnotificationAlert;
|
|
373
|
+
id showPushnotificationAlert = command.arguments[0];
|
|
374
|
+
self.pushManager.showPushnotificationAlert = [showPushnotificationAlert boolValue];
|
|
373
375
|
}
|
|
374
376
|
|
|
375
377
|
- (void)startBeaconPushes:(CDVInvokedUrlCommand *)command {
|