File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
iOS_SDK/OneSignalSDK/OneSignalNotifications Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ NS_SWIFT_NAME(onClick(event:));
114114
115115+ (void )handleWillShowInForegroundForNotification : (OSNotification *_Nonnull)notification completion : (OSNotificationDisplayResponse _Nonnull)completion ;
116116+ (void )handleNotificationActionWithUrl : (NSString * _Nullable)url actionID : (NSString * _Nonnull)actionID ;
117- + (BOOL )clearBadgeCount : (BOOL )fromNotifOpened fromClearAll : (BOOL )fromClearAll ;
117+ + (void )clearBadgeCount : (BOOL )fromNotifOpened fromClearAll : (BOOL )fromClearAll ;
118118
119119+ (BOOL )receiveRemoteNotification : (UIApplication* _Nonnull)application UserInfo : (NSDictionary * _Nonnull)userInfo completionHandler : (void (^_Nonnull)(UIBackgroundFetchResult))completionHandler ;
120120+ (void )notificationReceived : (NSDictionary * _Nonnull)messageDict wasOpened : (BOOL )opened ;
Original file line number Diff line number Diff line change @@ -784,7 +784,7 @@ + (void)displayWebView:(NSURL*)url {
784784 openUrlBlock (true );
785785}
786786
787- + (BOOL )clearBadgeCount : (BOOL )fromNotifOpened fromClearAll : (BOOL )fromClearAll {
787+ + (void )clearBadgeCount : (BOOL )fromNotifOpened fromClearAll : (BOOL )fromClearAll {
788788
789789 NSNumber *disableBadgeNumber = [[NSBundle mainBundle ] objectForInfoDictionaryKey: ONESIGNAL_DISABLE_BADGE_CLEARING];
790790
@@ -796,7 +796,7 @@ + (BOOL)clearBadgeCount:(BOOL)fromNotifOpened fromClearAll:(BOOL)fromClearAll {
796796 if (_disableBadgeClearing && !fromClearAll) {
797797 // The customer could have manually changed the badge value. We must ensure our cached value will match the current state.
798798 [OneSignalUserDefaults.initShared saveIntegerForKey: ONESIGNAL_BADGE_KEY withValue: [UIApplication sharedApplication ].applicationIconBadgeNumber];
799- return false ;
799+ return ;
800800 }
801801
802802 bool wasBadgeSet = [UIApplication sharedApplication ].applicationIconBadgeNumber > 0 ;
@@ -806,8 +806,6 @@ + (BOOL)clearBadgeCount:(BOOL)fromNotifOpened fromClearAll:(BOOL)fromClearAll {
806806 [[UIApplication sharedApplication ] setApplicationIconBadgeNumber: 0 ];
807807 }];
808808 }
809-
810- return wasBadgeSet;
811809}
812810
813811+ (BOOL )handleIAMPreview : (OSNotification *)notification {
You can’t perform that action at this time.
0 commit comments