13

Why are there two type of devRant notification icons?

Comments
  • 4
    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.
  • 4
    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
  • 1
    @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)
  • 1
    @Codex404 it is annoying but what can @dfox do is use the same icon even if the app is open, he can't do much about it when it is not open
  • 1
    @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?
  • 1
    @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
  • 1
    @gitpush ah thanks for the explanation, no clue why android would do this though :(
  • 0
    @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 :\
  • 1
    @killermenpl gitpush already tagged him
  • 3
  • 1
    @iamgio thanks my friend
  • 0
    maybe devrant is trying to tell u the comment may not be good news :O
  • 3
    Weeheeee, I'm famous now!! 😂😂😂😇
Add Comment