Skip to content

Commit b1eedf7

Browse files
committed
alternative to changing badge is use another flag
1 parent 03dd2c7 commit b1eedf7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iOS_SDK/OneSignalSDK/OneSignalCore/Source/OSNotification.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
@property(readonly, nullable)NSString* category;
6060

6161
/* The badge assigned to the application icon */
62-
@property(readonly, nullable)NSNumber* badge;
62+
@property(readonly)BOOL hasBadge;
63+
@property(readonly)NSInteger badge;
6364
@property(readonly)NSInteger badgeIncrement;
6465

6566
/* The sound parameter passed to the notification

0 commit comments

Comments
 (0)