Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Let us assume they are using Firebase for push notifications, it goes like this:
1. If the app is fully closed and not sent to background you will see the first icon (the white one) Because they have not set in Android Manifest file what icon to use then the system takes app icon and show it in that way. Developer here has no control on the notification it just shows up, any action or customization are either in Android Manifest file or set when sending request to Firebase, and notification just shows up when it is received by the system so that the app doesn't wake up and resources are used, it just shows notification until user actually taps on it then the app is awaken and resources are started to be consumed
2. If the app is in background or running, you will see the correct icon and this one does not require setting it in AndroidManifest file, it is set by code, and dev has full control on what to show, how to show and when. -
Can't edit on website :\
but editing for: "Because they have not set in Android Manifest file what icon to use then the system takes app icon and show it in that way"
Just remembered even if it is set in Manifest, it still shows up that way -
@gitpush ok thanks, seems really weird to me and it kinda annoys me. But not enough to get rid of devRant on Android (I will always have the windows mobile app which in my eyes is better in many ways)
-
@gitpush where does the white icon come from? I assume android/firebase dont make it themselves, cant dfox change the white icon to the colored one?
-
@Codex404 Android does it, I was using Firebase in one of my apps, and when the app is not running notification shows up with the white icon by default
-
@gitpush ah thanks for the explanation, no clue why android would do this though :(
-
@Codex404 This is the fallback icon, I think they chose it that way to keep backward compatibility though I suppose they are using the support lib notifications, it should be documented but I honestly don't know :\
Related Rants
Why are there two type of devRant notification icons?
devrant
notifications
icons