Question

Each time a pushNotification is received, a push badge appears on the right top corner of the application. As the number of the pushNotification grows, the badge number can turn out to be incredibly large.

Is there any limitation can be set to the badge number? Say, if the number of the push notification is over 100, can I set the badge number to "100+"?

I have already tried numbers with over 10 digits, and the badge appears to be "1,...3", which only the first and last numbers are displayed and the rest are presented by ".".

Was it helpful?

Solution

I imagine it will be an int64 (or int32) depending on device so that sets an upper limit of.

9,223,372,036,854,775,807 on iPhone 5s and iPad air

or

2,147,483,647 on other devices

and no, you can't set a custom format.

OTHER TIPS

No , You cant set some custom format for app badge icon, we can only set int number to it,

and as you say if there is 10 digit nos., i'll guess it is rarest possibility for that user hasn't open app for too long.

Is there any limitation can be set to the badge number? Say, if the number of the push notification is over 100, can I set the badge number to "100+"?

No, i don't think you can do that.but you can limit badge number in your application, such as reset badge number when user enter your app each time.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top