Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Questions:

  •  N/A

Technical Refinement

Description

To change Icon Color for specific brands:

  • First, we should add LocalFirebaseMessagingService class to the specific brand/market AndroidManifest.xml

intl-whitelabel-app/workspaces/frontend/native-assets/{brand}/{market}/android/app/src/main/AndroidManifest.xml

Add this block of code before the application tag closing

  ...
  <service 
    android:name=".LocalFirebaseMessagingService"
    android:exported="false">
    <intent-filter>
      <action android:name="com.google.firebase.MESSAGING_EVENT" />
    </intent-filter>
  </service>
</application>

</service>

  • Finally, add the notificationColor hex to the specific brand/market colors.xml

intl-whitelabel-app/workspaces/frontend/native-assets/{brand}/{market}/android/app/src/main/res/values/colors.xml

Add the hex color after splashBGColor

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="splashBGColor">#F78224</color>
    <color name="notificationBGColor">{Hexadecimal Color}</color>
</resources>

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.