flutter_app_badger icon indicating copy to clipboard operation
flutter_app_badger copied to clipboard

flutter_app_badger Not working on android devices. Is there any limitations ?

Open Maulik009 opened this issue 5 years ago • 12 comments

I did following on pubspec.yaml : flutter_app_badger: ^1.0.3 and imported import 'package:flutter_app_badger/flutter_app_badger.dart'; inside dart file. but when I run the project on device it shows "Badge supported : Not supported"

Maulik009 avatar Sep 09 '19 05:09 Maulik009

I need more details please, including the device causing the problem.

Also, please read the README, where I clearly mention that on Android this plugin is just using the following library https://github.com/leolin310148/ShortcutBadger/

Please check if your device is in the list.

g123k avatar Sep 09 '19 05:09 g123k

Ok. my device is Nokia 5 1 plus having Android Oreo and I want to support this plugin for Oreo and above.

Maulik009 avatar Sep 09 '19 05:09 Maulik009

On Oreo and above, the only solution to have a badge on the launchscreen is to have a notification in the notification tray.

Unlike iOS, there is no API available on Android.

g123k avatar Sep 09 '19 05:09 g123k

Ok so basically this plugin is not for latest android devices. I am putting here the logs / error

I/ShortcutBadger(21106): Checking if platform supports badge counters, attempt 1/3.

I/ShortcutBadger(21106): Checking if platform supports badge counters, attempt 2/3. I/ShortcutBadger(21106): Checking if platform supports badge counters, attempt 3/3. [{"event":"app.progress","params":{"appId":"a19b893f-2eeb-4c54-9cda-5bd5ba1772fd","id":"3","progressId":null,"message":"Syncing files to device Nokia 5 1 Plus..."}}]Syncing files to device Nokia 5 1 Plus...

W/ShortcutBadger(21106): Badge counter seems not supported for this platform: unable to resolve intent: Intent { act=android.intent.action.BADGE_COUNT_UPDATE (has extras) }

Maulik009 avatar Sep 09 '19 05:09 Maulik009

It depends...

If the device is using one of the launchers listed here: https://github.com/leolin310148/ShortcutBadger/, it may be supported

Otherwise yes you're right.

g123k avatar Sep 09 '19 05:09 g123k

Ok Thanks @g123k. if is there any link to display flutter badge notification then please provide here.

Maulik009 avatar Sep 09 '19 05:09 Maulik009

@g123k is your package support for this case? https://github.com/leolin310148/ShortcutBadger/blob/master/SampleApp/src/main/java/me/leolin/shortcutbadger/example/BadgeIntentService.java

This is issue in xiaomi devices

yusriltakeuchi avatar Aug 13 '21 04:08 yusriltakeuchi

@g123k is your package support for this case? https://github.com/leolin310148/ShortcutBadger/blob/master/SampleApp/src/main/java/me/leolin/shortcutbadger/example/BadgeIntentService.java

This is issue in xiaomi devices

same issue

DoodleBears avatar Oct 12 '21 13:10 DoodleBears

Xiaomi related issue has been resolved in recent pull request #59 Not sure when it will be merged.

sikandernoori avatar Jan 31 '22 03:01 sikandernoori

Xiaomi related issue has been resolved in recent pull request #59 Not sure when it will be merged.

Yeah, I have the same problem in my Xiomi device.

SalahAdDin avatar Apr 28 '22 17:04 SalahAdDin

same problem. And also I confirmed that device is listed in https://github.com/leolin310148/ShortcutBadger/ Is there any settings on Android device?

niumj avatar Jun 21 '22 08:06 niumj

not working in android device , i have vivo mobile, but in console its says platform is supported but its not working, can any one please help me to slove this.

Mohammad-taqi1212 avatar Jan 23 '23 12:01 Mohammad-taqi1212