wexpo
May 28, 2018, 12:00pm
1
I have a standalone android and ios app.
currently testing push notifications on android.
I have setup my app.json with the following notification key
"notification":{
"icon": "./app_assets/icons/icon-48-gs.png",
"color": "#000000"
},
the icon above is a 48x48 greyscale icon with transparency.
i tried also without color attribute.
all i get in both the status bar and in the actual notiification is a white/light grey/black square.
based on these other posts i have also tried a 96x96 greyscale icon.
Push notifications for my standalone app on Android (Oreo) come in without the app icon (only the notif tray icon is showing up) - is there any way to fix this? Not sure if this is the expected behavior since push notifications received by the Expo shell app do include the app icon.
[Screenshot_20180424-115131_Nova%20Launcher]
The docs for app.json say this about the `notification.icon:
Local path or remote url to an image to use as the icon for push notifications. 48x48 png grayscale with transparency. Source
However I noticed by testing with sdk 25 on an Android 8 Pixel Device and Android 6 simulator, the status bar icon for push notifications and local notifications is way too small. Also, when I pulled down the screen to see the notifications, the same icon appears next to my apps’s name on Android 8, and it wa…
Can someone please help provide guidance on what the issue might be?
1 Like
thetc
May 31, 2018, 8:40pm
3
Hi wexpo,
Could you share the entirety of your app.json?
1 Like
wexpo
June 1, 2018, 10:58am
4
thank you thetc.
i’ve resolved it now.
here’s a post i just made on my experience.
Hi @Expo team,
Following my post here,
https://forums.expo.dev/t/notification-icon-doesnt-show-up-android/10204
I was luckily able to get help with my issue on stack overflow.
Some feedback I thought may help others in the future with respect to additional information in the documentation.
Icon:
must be 8-bit color depth. As soon as I changed the color depth to be 8-bit the icon showed up immediately.
Color:
Tint color specified is what gets applied to the areas of pure white in the ic…
1 Like
system
Closed
June 16, 2018, 10:58am
5
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.