pushwoosh-cordova-plugin 8.3.32 → 8.3.33
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 +1 -1
- package/src/ios/PushNotification.m +1 -33
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.33
|
|
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.33
|
|
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.33
|
|
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.33",
|
|
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.33">
|
|
3
3
|
|
|
4
4
|
<name>Pushwoosh</name>
|
|
5
5
|
|
|
@@ -154,39 +154,7 @@ API_AVAILABLE(ios(10))
|
|
|
154
154
|
[PushNotificationManager initializeWithAppCode:appid appName:appname];
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
|
|
158
|
-
BOOL shouldReplaceDelegate = YES;
|
|
159
|
-
UNUserNotificationCenter *notificationCenter = [UNUserNotificationCenter currentNotificationCenter];
|
|
160
|
-
|
|
161
|
-
if (notificationCenter.delegate != nil) {
|
|
162
|
-
if ([notificationCenter.delegate conformsToProtocol:@protocol(PushNotificationDelegate)]) {
|
|
163
|
-
shouldReplaceDelegate = NO;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
if (notificationCenter.delegate != nil) {
|
|
168
|
-
if (shouldReplaceDelegate) {
|
|
169
|
-
_originalNotificationCenterDelegate = notificationCenter.delegate;
|
|
170
|
-
_originalNotificationCenterDelegateResponds.openSettingsForNotification =
|
|
171
|
-
(unsigned int)[_originalNotificationCenterDelegate
|
|
172
|
-
respondsToSelector:@selector(userNotificationCenter:openSettingsForNotification:)];
|
|
173
|
-
_originalNotificationCenterDelegateResponds.willPresentNotification =
|
|
174
|
-
(unsigned int)[_originalNotificationCenterDelegate
|
|
175
|
-
respondsToSelector:@selector(userNotificationCenter:
|
|
176
|
-
willPresentNotification:withCompletionHandler:)];
|
|
177
|
-
_originalNotificationCenterDelegateResponds.didReceiveNotificationResponse =
|
|
178
|
-
(unsigned int)[_originalNotificationCenterDelegate
|
|
179
|
-
respondsToSelector:@selector(userNotificationCenter:
|
|
180
|
-
didReceiveNotificationResponse:withCompletionHandler:)];
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
if (shouldReplaceDelegate) {
|
|
185
|
-
__strong PushNotification<UNUserNotificationCenterDelegate> *strongSelf = (PushNotification<UNUserNotificationCenterDelegate> *)self;
|
|
186
|
-
notificationCenter.delegate = (id<UNUserNotificationCenterDelegate>)strongSelf;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
157
|
+
[UNUserNotificationCenter currentNotificationCenter].delegate = [PushNotificationManager pushManager].notificationCenterDelegate;
|
|
190
158
|
[self.pushManager sendAppOpen];
|
|
191
159
|
|
|
192
160
|
NSString * alertTypeString = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"Pushwoosh_ALERT_TYPE"];
|