Icon is not available on first run - Android only
otaviolbarbosa opened this issue · 1 comments
otaviolbarbosa commented
Platform
- iOS
- Android
Description
The scenarios I'm trying to cover is to have different icons for freemium and premium users. On iOs is working fine, but on Android, every first run of the app, icon is not available. If I close it completely and open it again, icon appears normally. This issue affects even push notification icons.
To Reproduce
Steps to reproduce the behavior:
1.
2.
Expected behavior
App first run starts with app.
Device (please complete the following information):
- Device: Samsung Galaxy A51
- OS: Android 13
Versions
- react-native: 0.67.2
- react-native-change-icon: 4.0.0
Code Snippet
<activity-alias android:name="com.packagename.app.MainActivitylogofree"
android:enabled="true"
android:exported="true"
android:icon="@mipmap/logofree"
android:targetActivity=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity-alias>
<activity-alias android:name="com.packagename.app.MainActivitylogopremium"
android:enabled="false"
android:exported="true"
android:icon="@mipmap/logopremium"
android:targetActivity=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity-alias>
skb1129 commented
@otaviolbarbosa please use v5 and use the updated docs for the setup