Reputation: 347
I am using react-native-applozic-chat for handling chats in my react-native app. My question is there any way to prevent the app badge icon from appearing on app icon after receiving any chat notification? I want to disable it specifically in ios because it does not appear in android.
Upvotes: 3
Views: 2361
Reputation: 480
You can use this
application.applicationIconBadgeNumber = 0;
in AppDelegate didfinishLaunched to get the the result.
Upvotes: 1
Reputation: 137
Badge number is a good option for this :
app.applicationIconBadgeNumber = 0;
Upvotes: 0
Reputation: 468
If you want to disable the app badge count completely.
You can use the below setting in ALChatmanager.m
file inside the method ALDefaultChatViewSettings
.
[ALUserDefaultsHandler setUnreadCountType:0];
Make sure this setting is added only once in ALChatmanager.m
file
For more information on this disabling, you can refer to the docs here
Upvotes: 1