/
Push Notification - Change Android Icon Color
Push Notification - Change Android Icon Color
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 hexadecimal color after splashBGColor
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="splashBGColor">#F78224</color>
<color name="notificationBGColor">{Hexadecimal Color}</color>
</resources>
Screenshots
N/A
POC
N/A
Impact Analysis
N/A
Dependencies
N/A
Unit Test
N/A
Useful Links
N/A
, multiple selections available,
Related content
Frontend - Free refill QR code
Frontend - Free refill QR code
Read with this
Push Notification - Change Android Icon
Push Notification - Change Android Icon
More like this
Tech discovery - Free refill QR code
Tech discovery - Free refill QR code
Read with this
Listener push notification from Salesforce
Listener push notification from Salesforce
More like this
Change color of heart to red - Technical Refinement
Change color of heart to red - Technical Refinement
More like this
[Archived] Feature - Push notifications
[Archived] Feature - Push notifications
More like this