Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.1.21 is not working on Samsung Galaxy S9 #292

Closed
Onkarn92 opened this issue Jun 19, 2018 · 7 comments
Closed

v1.1.21 is not working on Samsung Galaxy S9 #292

Onkarn92 opened this issue Jun 19, 2018 · 7 comments

Comments

@Onkarn92
Copy link

Hi Leo,

Details:
Model number: SM-G960F
Android: 8.0.0
Samsung Experience Version: 9.0

I tried with ShortcutBadger app and it is not working on S9, I tried to submit a working status by clicking on "No" button, But the app is showing "Something went wrong" toast.

Any help would be appreciated!

Cheers,
Onkar

@mubasshir
Copy link

+1

@firemaples
Copy link

firemaples commented Jun 25, 2018

After Samsung Android 8.0, the badge count was counted by OS from notification count.
You can control the badge by set number in notifications.

(OS always overwrite the badge count in minutes)

Reference:
https://developer.android.com/training/notify-user/badges#set_custom_notification_count

See: #266

@Onkarn92
Copy link
Author

Okay, thanks @firemaples

@guidedways
Copy link

@Onkarn92 were you able to get this to work as advised? I don't have a Samsung phone to test this on but users report that the badge isn't working on Samsung phones.

@Onkarn92
Copy link
Author

@guidedways Yep, It is working fine with setNumber(count) method for notification.

I don't have a Samsung phone to test this on but users report that the badge isn't working on Samsung phones.

On pre-Oreo Samsung phones, The ShortcutBadger should work (at lease working in my case).
Well, You'll need to use the notification if the Android version is 8.0.0 +

NOTE: If notification gets cleared from notification stack, then OS will remove the badge count.

@guidedways
Copy link

@Onkarn92 Can you please share with me a screenshot of what you see when setNumber() is used? Does the user see a red badge similar to pre-Oreo days?

@Onkarn92
Copy link
Author

@guidedways I can't upload a live screenshot at the moment, But you can refer to this:

badge

It looks very similar on my s9 using setNumber() method.

However, You can not change the background color of badge and to reset the count either clear your notification or use setNumber(0) (I'm not sure about this).

For more details:

  1. Modify a Notification Badge
  2. Samsung running Android 8 is reported as supported, but is not #266

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants