question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Expo push notification badge not display in galaxy s9/s8 with newly launched samsung one UI devices?

See original GitHub issue

🐛 Bug Report

Environment

Mobile OS Version :- Android P with 'samsung one ui ’ Expo sdk-32.0.0

for push service

Standalone Android App

Steps to Reproduce

Expected Behavior

Whenever phone receive new notification it should display badge on application icon

Actual Behavior

I have standalone Android and IOS App build with Expo ,In the App I am implementing push notification and its also working Properly in all devices but in galaxy s9/s8 with newly launched samsung ‘one UI’ does not show badge when notification arrived.I am also added notification channel.Here is my code

await Expo.Notifications.createChannelAndroidAsync('chat-messages', { name: 'Chat messages', sound: true, badge: true });

Find an attachment

Screen Shot 2019-04-18 at 6 57 03 PM Screen Shot 2019-04-18 at 6 57 20 PM Screen Shot 2019-04-18 at 6 59 01 PM

Reproducible Demo

I have prepare one Test notification app you can test via this app testNotification-78ea9118cf1040109abb640ba24ea4cd-signed.apk.zip (source-https://github.com/sameesiddiqui/expo-notifications-example )

Thanks for helping us

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
cruzachcommented, Mar 31, 2020

Hi @chintansavjiyani1996 and @EdGaz , it seems like this is probably has to do with the launcher used on the device- it’s possible that the “one UI” launcher doesn’t show badges, or that it uses a launcher that ShortcutBadger (the library we use for badges) doesn’t support

1reaction
EdGazcommented, Apr 23, 2019

Same problem here with Galaxy S8, the badge is not showing even if i created the channel with badge set to “true”. (i’m sending the notifications with the right channel Id)

let channel = {
      name: "name..",
      description: "description..",
      sound: true,
      vibrate: true,
      badge: true
    };

Notifications.createChannelAndroidAsync(channelId,channel);

by long-pressing on the app icon i can see the notifications, but the relative icons are missing

Read more comments on GitHub >

github_iconTop Results From Across the Web

What to do if Badge is not Shown on Messages app for New ...
Launch Settings app > Apps > select relevant application(messages etc.) > tap Notifications > tap Allow notification switch to activate it.
Read more >
Notifications - Expo Documentation
The expo-notifications provides an API to fetch push notification tokens ... This prompt will not appear until at least one notification channel is...
Read more >
Top 9 Ways to Fix Notifications Not Working on Samsung ...
Samsung phone failing to send notifications? Try out these troubleshooting tips to fix notifications not working issue on Samsung phones.
Read more >
Problems with Push Notifications on Samsung Devices
If you experience problems with push notifications on a Samsung device, please perform the steps listed for your operation system: …
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found