Skip to content

Commit 43c6112

Browse files
committed
Add instruction how to update badge count for iOS Chat
1 parent 24a6ce3 commit 43c6112

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"title": "Update Badge Count",
3+
"type": "mobile"
4+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- (void)chatClient:(TwilioChatClient *)client notificationUpdatedBadgeCount:(NSUInteger)badgeCount {
2+
[UIApplication.currentApplication setApplicationIconBadgeNumber:badgeCount];
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
func chatClient(_ client: TwilioChatClient, notificationUpdatedBadgeCount badgeCount: UInt) {
2+
UIApplication.shared.applicationIconBadgeNumber = Int(badgeCount)
3+
}

0 commit comments

Comments
 (0)