Push notifications missing icon on Android

#1

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.

1 Like
notification icon doesn't show up android.
#2

It seems like you didn’t specify any icons for this on the Android Studio Image Asset tool:

Just follow the steps here - https://developer.android.com/studio/write/image-asset-studio.html

#3

Thanks, Nir - since my apk is created by Expo (i.e. it’s not detached), I assumed it would be pulling in icons set in app.json for this. Is that not the case?

#4

Yeah I think you’re right, for some reason I thought your app is detached.

#5

@lev when did you last run your standalone build? Was the app icon specified in your app.json when you submitted the build?

#6

Thanks, @dikaiosune - just re-built this week. The icon was set in app.json when running exp build:android. Let me know if there is any debug info I can help with to track this down!

#7

Hi @dikaiosune - wanted to follow up since I’m still having the same issue with the push icon. I’ve tried re-building the apk and resubmitting to the Play Store again, with no luck. Any ideas on what I should try to get the app icon to show up in push notifs?

#8

I have the same issue. In Android the notification tray shows the expo icon even though I have had specified the icon as a general attribute and as a specific icon inside android key (both in app.json). On iOS the icon is working as expected.

I am using expo 27.

[SOLVED]
I have fixed this by using this answer https://forums.expo.io/t/android-notification-status-bar-icon-too-small/7175

2 Likes
closed #10

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.