urbanairship / urbanairship-cordova

Urban Airship integration with Apache Cordova
https://docs.airship.com/platform/mobile/setup/sdk/cordova/
Other
142 stars 149 forks source link

Android app icon notification count not clearing #185

Closed donrowlett closed 7 years ago

donrowlett commented 7 years ago

I'm not sure this is even an issue with the plugin, but I know there are experts here that might be able to help me. And if this is not a plug-in issue, go ahead and close this incident.

I've got this plugin working via PhoneGap Build on both Android and iOS platforms. All is good except that on my Android, the orange 'notification count' bubble that appears with the app icon won't clear. It is stuck at '2'. I've tried reboot, uninstall/reinstall, send/clear lots of push notifications, nothing works so far... it is always stuck at '2'.

There are no issues with badge numbers on iOS.

I suspect a couple of things, but wanted to get some feedback before I started messing with code.

rlepinski commented 7 years ago

@donrowlett Android does not actually support badging as a core feature. Some manufacturers added support for badging, but its per manufacture and per home screen app. Usually you can set the badge independently of notifications. Our plugin has zero support for badging ATM.

It might be left over data from a different plugin you were using. What device are you using? Could you post a screenshot?

donrowlett commented 7 years ago

Thanks Ryan,

I suspected it was outside the phonegap-ua-push plugin, now I'll focus my efforts on the other plugins I tested before settling on yours.

How funny... I was just preparing to send a screen shot and went to move the icon to the center of my screen so it would be clearer, and as I dragged the icon a pop-up menu appeared with 'Clear Badge' as a choice. It worked! Which is good for me, but bad for you because now I no longer have a badged icon I can send you. Oh well.

I hope you at least feel good in knowing that your suggestion enabled me to solve my problem, even if not in the way we expected.

I'll close the incident.

Have a great day!

On Mon, Jun 19, 2017 at 11:09 AM, Ryan Lepinski notifications@github.com wrote:

@donrowlett https://github.com/donrowlett Android does not actually support badging as a core feature. Some manufacturers added support for badging, but its per manufacture and per home screen app. Usually you can set the badge independently of notifications. Our plugin has zero support for badging ATM.

It might be left over data from a different plugin you were using. What device are you using? Could you post a screenshot?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/urbanairship/phonegap-ua-push/issues/185#issuecomment-309520794, or mute the thread https://github.com/notifications/unsubscribe-auth/AQsY_2vYgnmxJu5GRYbqLno6hEROaQYFks5sFrlSgaJpZM4N-icX .

--

Don Rowlett, Project A 5350 Highway 66, Ashland OR 97520 541-488-1702 (w) 541-531-9090 (m) All text and attachments Copyright 2017, Project A