Questions tagged [badge]

A badge is a concise visual indication of something important to the user.

A badge is an unobtrusive notification in an application, indicating to the user a count of actionable objects that the user may wish to attend to. For example, number of new emails or unread messages.

A badge is not to be used as an urgent message requiring immediate user action, but rather assists in program flow, giving the user information about another part of the application that is not currently in focus.

867 questions
0
votes
2 answers

How to grab badge icon image out of iphone simulator?

I found the response to a post about MKPinAnnotationView icons very helpful. See: MKPinAnnotationView: Are there more than three colors available?. I want to do the same thing getting the icon badge out of the simulator so that I can use it…
thephatp
  • 1,479
  • 1
  • 20
  • 37
0
votes
1 answer

Why can not change UITabBar badge font iOS Swift?

I try to change UITabBar badge font like this: cartTab = tabBar.items![2] let font = UIFont(name: "MyFontName", size: 11)! cartTab?.setBadgeTextAttributes([NSAttributedStringKey.font.rawValue: font], for:…
reza_khalafi
  • 6,230
  • 7
  • 56
  • 82
0
votes
1 answer

TabBar Badge Events and changing

I have a tabbar, with a default badge count of 6. When a user changes the value of a button on the tab view, I would like the badge to adjust. -1 or +1. All the buttons are set to red, if the user changes the value to green, then the badge goes down…
0
votes
1 answer

badge counter sony , samsung Android Oreo and . Pie

I'm working on an android application, I need to show an account in the main icon of the application, in android oreo works the class Notification Badge, but in android 9 in a google pixel does not show it, and in Sony Xperia XZ2 with android Pie…
0
votes
1 answer

kendo ui jquery toolbar button badge not working

Is this limitation documented or why are badges not rendered on a button(group) in toolbar widget? demo: enter link description here
hpet
  • 299
  • 2
  • 14
0
votes
2 answers

Update app icon badge number after fetching count value from API

I want to update app icon badge number by totalling all badge counts. Following is my function. The problem is that count goes out of sync since I'm fetching the count values from APIs and closures make it out of sync. updateBadgeCounts() will be…
Josh
  • 9
  • 3
0
votes
1 answer

Get only Badge count in notification with out Notification Alert

All, We have a notification tab in our app, where we are displaying all the Notifications, We are displaying the count on the Badge, Whenever user view the notification, we are decrementing the Badge count. Now we have a use case where the user can…
kiri
  • 1,977
  • 5
  • 27
  • 55
0
votes
0 answers

How to create a simple code from custom created SVG which can be placed on other websites

After creating a custom SVG with shapes and text, the big code is left: 50 lines of code... How could one create…
Dario Sagud
  • 81
  • 1
  • 8
0
votes
2 answers

Badge like notification (kotlin) : null object reference

I want to show some value in my ActionBar thanks to the "badge". But, when I run my app, I have this error : java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object…
Projet Sin
  • 337
  • 8
  • 20
0
votes
0 answers

How to show count of fcm notifications in app launcher icon?

I have also searched from this link. I can't find solution to show count on app launcher icon. Here is my code to show notification. How can I add fcm count on app launcher icon and solve this? public class MyFirebaseMessagingService extends…
0
votes
2 answers

How to Reset the badgeValue after loading the screen in swift?

I want to reset the badge value of the tapItem if the user has seen the notification by visiting the screen. With this code, I create the badgeValue. but it will never be reset: func createBadgecount() { if let tapItems =…
jo1995
  • 414
  • 1
  • 5
  • 14
0
votes
1 answer

Adding badge to chat button when got message

I've got social network app. App icon badge and tabbar.item badge work fine. But I have a message button in homepage just like instagram. I want this button to show badge when got new message. Here is my Inbox push notification function // Send…
0
votes
2 answers

Clearing badge Icon without clearing notifications

I have to clear application badge icon while opening the application. I do clear by setting applicationBadgeIcon to 0. => But it clears my all notifications from notification center. I have also tried by setting applicationBadgeIcon to -1, But it…
anshul king
  • 558
  • 4
  • 17
0
votes
0 answers

Set Badge on Second to Right Most UIBarButtonItem in Objective-C

When there are notifications, I set a badge on a Notifications Button that is one of three potential Right bar button items. When there are no notifications, the notifications button should and does not show at all. When there are notifications, I…
user1904273
  • 4,562
  • 11
  • 45
  • 96
0
votes
1 answer

Badge doesn't fit into bottom navigation in react native

I tried using the Badge from https://github.com/xotahal/react-native-material-ui, but the element doesn't properly fit into the bottom navigation: Here's the code from AppNavigator.js: import { createMaterialBottomTabNavigator } from…
Darkhan
  • 2,888
  • 5
  • 20
  • 30