diff --git a/README.md b/README.md index c2ea495b..c2c09041 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,13 @@ Cross-Platform push notifications by Pushwoosh for Cordova / PhoneGap Using npm (requires cordova 7.0+): ``` -cordova plugin add pushwoosh-cordova-plugin@8.3.3 +cordova plugin add pushwoosh-cordova-plugin@8.3.4 ``` Using git: ``` -cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#8.3.3 +cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#8.3.4 ``` #### Phonegap @@ -28,7 +28,7 @@ cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#8. Using npm (requires phonegap 7.1+): ``` -cordova plugin add pushwoosh-cordova-plugin@8.3.3 +cordova plugin add pushwoosh-cordova-plugin@8.3.4 ``` ### Guide diff --git a/README_PGB.md b/README_PGB.md index 4e7bff5b..ed2cd5b7 100644 --- a/README_PGB.md +++ b/README_PGB.md @@ -14,7 +14,7 @@ Cross-Platform push notifications by Pushwoosh for PhoneGap Using npm (requires cordova 5.0+): ``` -cordova plugin add pushwoosh-pgb-plugin@8.3.3 +cordova plugin add pushwoosh-pgb-plugin@8.3.4 ``` ### Guide diff --git a/package.json b/package.json index 48005266..b762f816 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pushwoosh-cordova-plugin", - "version": "8.3.3", + "version": "8.3.4", "description": "\n This plugin allows you to send and receive push notifications. Powered by Pushwoosh (www.pushwoosh.com).\n ", "main":"www/PushNotification.js", "typings":"types/index.d.ts", diff --git a/plugin.xml b/plugin.xml index e2579746..237ae2cd 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,5 +1,5 @@ - + Pushwoosh @@ -77,13 +77,13 @@ - - - - - - - + + + + + + + diff --git a/src/ios/Pushwoosh.framework/Versions/A/Headers/PWNotificationExtensionManager.h b/src/ios/Pushwoosh.framework/Versions/A/Headers/PWNotificationExtensionManager.h index 94891d68..9c974dc1 100644 --- a/src/ios/Pushwoosh.framework/Versions/A/Headers/PWNotificationExtensionManager.h +++ b/src/ios/Pushwoosh.framework/Versions/A/Headers/PWNotificationExtensionManager.h @@ -28,6 +28,19 @@ NS_ASSUME_NONNULL_BEGIN */ - (void)handleNotificationRequest:(UNNotificationRequest *)request contentHandler:(void (^)(UNNotificationContent *))contentHandler; +/** + Example: + @code + - (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(void (^)(UNNotificationContent * _Nonnull))contentHandler { + self.contentHandler = contentHandler; + self.bestAttemptContent = [request.content mutableCopy]; + + [[PWNotificationExtensionManager sharedManager] handleNotificationRequest:request withAppGroups:@"group.com.example_domain.example_app_name."]; + } + @endcode + */ +- (void)handleNotificationRequest:(UNNotificationRequest *)request withAppGroups:(NSString * _Nullable)appGroupsName; + @end NS_ASSUME_NONNULL_END diff --git a/src/ios/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h b/src/ios/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h index 6fe3df24..3ddb5246 100644 --- a/src/ios/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h +++ b/src/ios/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h @@ -385,14 +385,6 @@ typedef void (^PushwooshErrorHandler)(NSError *error); */ - (void)sendAppOpen; -/** - Sends current badge value to server. Called internally by SDK Runtime when `UIApplication` `setApplicationBadgeNumber:` is set. This function is used for "auto-incremeting" badges to work. - This way Pushwoosh server can know what current badge value is set for the application. - - @param badge Current badge value. - */ -- (void)sendBadges:(NSInteger)badge __API_AVAILABLE(macos(10.10), ios(8.0)); - + (NSString *)pushwooshVersion; #if TARGET_OS_IOS diff --git a/src/ios/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h b/src/ios/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h index d13d1a33..303c6e6e 100644 --- a/src/ios/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h +++ b/src/ios/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h @@ -18,7 +18,7 @@ #endif -#define PUSHWOOSH_VERSION @"6.3.5" +#define PUSHWOOSH_VERSION @"6.4.2" @class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy; @@ -81,6 +81,11 @@ Tells the delegate that the user has pressed on the push notification banner. */ @property (nonatomic, readonly) NSUInteger badge; +/** + Extension badge number of the push message. +*/ +@property (nonatomic, readonly) NSUInteger badgeExtension; + /** Remote URL or deeplink from the push message. */ diff --git a/src/ios/Pushwoosh.framework/Versions/A/libPushwoosh.a b/src/ios/Pushwoosh.framework/Versions/A/libPushwoosh.a index 3419f239..6df1a3b2 100644 Binary files a/src/ios/Pushwoosh.framework/Versions/A/libPushwoosh.a and b/src/ios/Pushwoosh.framework/Versions/A/libPushwoosh.a differ