About displaying badges on icons

Asked 2 years ago, Updated 2 years ago, 122 views

Currently, we are developing smartphone applications using Monaca, and it is located in the app
I would like to display the number of unreads in the list on the icon on the home screen.

However, as you can see from the screen in the app, the icon on the home screen of your smartphone
When it comes to displaying badges, I don't know what to do...

For the time being, there is a LINE and email that shows the number of items in the upper right corner of the icon, so
I don't think it's technically impossible...
Also, I would like to support both Android and iPhone for icon badge display.

- Add -

Basically, it is impossible to display badges on Android, so I put it on hold for a while.
I am still looking for a way to display the badge on the home icon on my iPhone on Monaca.
Thank you for your cooperation.

javascript android monaca iphone html5

2022-09-30 20:14

2 Answers

You shouldn't be able to use Android.

If the batch is displayed on the terminal you have on Line, wouldn't you be using the home app separately?
For example, there are the following applications:
Android's home app "GO Launcher EX" is high-performance for free! But there's only one drawback.

Alternatively, you can create something similar as a widget, but it requires manual intervention by the user separately from the app icon.
How to put a Gmail notification badge (unread) on Android


2022-09-30 20:14

Use the cordova plug-in because you need to access native features.
I think it will be possible if I use the plug-in below.It also supports Android.

https://github.com/katzer/cordova-plugin-badge

However, to add a custom cordova plug-in, monaca requires you to subscribe to a paid plan above the Gold plan.


2022-09-30 20:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.