Disable application badge icon on receiving notification in ios

Viewed 1509

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.

3 Answers

You can use this

application.applicationIconBadgeNumber = 0;

in AppDelegate didfinishLaunched to get the the result.

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

Badge number is a good option for this :

app.applicationIconBadgeNumber = 0;
Related