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.

Problem with notification icon in status bar.

See original GitHub issue

Have been trying to change icon of notification on status bar for a day. Cannot make it work properly. On standalone app, expo icon is showing up on status bar instead of my app.

Expected Behavior

Click below (it is a white icon) notification_icon1

The icon below should be shown instead of expo icon. photo_2019-01-26_18-15-53

Screenshots below explain the issue more clearly. photo_2019-01-26_18-16-19 photo_2019-01-26_18-16-23

(Write what happened. Add screenshots!)

Reproducible Demo

app.json file { "expo": { "name": "Delivera Business", "slug": "Delivera-Restaurants", "privacy": "public", "sdkVersion": "32.0.0", "platforms": ["ios", "android"], "version": "1.0.0", "orientation": "portrait", "icon": "./assets/icon.png", "splash": { "image": "./assets/splash.png", "resizeMode": "contain", "backgroundColor": "#ffffff" }, "notification": { "icon": "./assets/notification_icon.png", "color": "#8ac53f", "androidMode": "default", "androidCollapsedTitle": "Delivera Business" }, "updates": { "fallbackToCacheTimeout": 0 }, "android": { "package": "restaurants.delivera.uz" }, "assetBundlePatterns": ["**/*"], "ios": { "supportsTablet": true, "bundleIdentifier": "restaurants.delivera.uz" } } }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
sreubenstonecommented, Jun 2, 2019

Michael I greatly appreciate this. Now I have it working. I’m surprised Expo doesn’t stress these app.json settings in the push notification documentation. I read through that page about 100x and I see no mention of this requirement. Thank you again.

1reaction
michaelAdewunmicommented, Jun 1, 2019

@michaelAdewunmi I am also struggling with the same issue here. Could you state more clearly what you mean by expo.notification property? Are you referring to something that has to go in my app.json? I can’t find a reference to a expo.notification field in app.json. Also, regarding custom push icon – what are the requirements of this icon – my initial review of the spec showed me I just needed a transparent background for android. Thanks for any tips you can provide.

Hello @sreubenstone , Pardon me if this is coming late.

First, you are right that expo.notification is found in the app.json.

"expo": { "name": { ... } "platforms": [ "ios", "android" ], "version": "1.0.0", "orientation": "portrait", "icon": "./assets/icon.png", "**notification**": { "icon": "**./assets/pnicon.png**" }, ... } I am sure you presently do not have the notification property in your app.json. So, just add it yourself and give it an icon property whose value will be the relative path to the folder containing the icon you wish to use.

Now, concerning the icon nature. Expo specified they need a 96px by 96px PNG8 grayscale type icon with transparency. You can easily achieve that with photoshop, In case you want to check out the official expo link, this is it here - https://docs.expo.io/versions/latest/workflow/configuration/

Meanwhile, you can also check the screenshot from the expo page below for confirmation.

Screenshot (6)

In my case, even after the whole configuration, my PN icon didnt show until I made a new build. I guess thats due to the preciously cached icon which had to be replaced in the new build.

I hope this helps. Please let me know if there’s anything you don’t understand. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

System icons do not appear in the notification area in ...
Describes an issue in which system icons are not displayed in the notification area ... type Customize icons and then click Customize icons...
Read more >
Notification problem on status bar[Solved]
Most applications' notification have been set to on but it doesn't show any notification icon on the top left status bar.
Read more >
How to Fix Taskbar Notification Icons Not Hiding Windows 10
Fix Taskbar Notification Icons Not Hiding Windows 10Facebook Page : https://www.facebook.com/MeMJTubeFollow on twitter: ...
Read more >
Hide Status Bar Notification Icons in Huawei - YouTube
How to Hide the Wifi icon on Status Bar Android · MS Word के Themes की Confusion अब होगी दुर #education #shorts #shortclass...
Read more >
How to fix the notification icons disappearing on the status bar ...
1.Go to Settings,scroll to Notification and Status bar. 2.Toggle on the “Show notification icons”. NB:You can also select ...
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