Frage

I am given a task to show local push notification. I have successfully completed showing push notification on bar. But also I have to show local notification on app launching icon on home screen like in i-phone. See the image enter image description here

I want this kind of notification. Here, may be the dialog I create using custom AlertDialog. But I'm stuck with the notification on the app icon i.e. that bubble containing notification no on upper right corner of app icon. I think this functionality is not given by android sdk. but our client says that she has seen these kinds of notifications on her Android mobile for some applications. So is it possible in Android, and if yes then how to do it?

War es hilfreich?

Lösung

What you're looking for is a "badge" and I'm sorry to tell you that this does not exist on Android - your client must be mistaken.

One workaround you could do is to create a widget for your app (and you can even make it look like an app icon if you wish...), and you can add a badge or update how it looks any way you choose.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top