Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Notification Transparent Small Icon

When Android pushs reach the device, a transparent logo appears on the status bar. Here, a monochrome shape(usually square or round) appears, as well as the logo area.

The icon in this area is a single-layered example of the application's icon. In cases where there is more than one layer, the icons appear square.

Since the icons here are managed by the operating system, the RMC SDKs cannot do anything. But we provide function so that you can upload a new suitable icon there.

Code Block
languagejava
euroMobileManager.setNotificationTransparentSmallIcon(R.drawable.ic_launcher, this);

The Android operating system, on the other hand, offers some conditions for this logo to work properly;

  • The background of the logo must be absolutely transparent. There will be no layer behind the logo and the logo must be a single layer.

  • It generally recommends brands to use only one letter in the logo. (For example: When you receive a mail from gmail, only the letter G is shown in the status bar)

  • Another important issue is the fact that the end user is using the device in dark mode or light mode due to the condition that the background to be added must be transparent (it can be called vector), affecting visibility. If the logo is white it will not appear in light mode, if the logo is black it will not appear in light mode.

Notification Large Icon

The rules for the big logo on the right of the push notifications are as follows.

Code to be added;

Code Block
euroMobileManager.setNotificationLargeIcon(R.drawable.ic_launcher,this); 

  • The logo that should be added here must be double-layered in android operating conditions. So it should be background.

  • If not, if the logo is white, it will not appear in light mode, if the logo is black, it will not appear in light mode.

    This is how the document explains it:

Info

the app icon is a small two-dimensional representation of your app's identity. It appears in monochrome in the status bar.

You can access the detailed information document from the link below.

https://material.io/design/platform-guidance/android-notifications.html#lock-screen