Version: 8.0.0
I have one alternative and one default icon, in my previous implementation I have in Info.plist
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>AppIcon</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
<key>CFBundleAlternateIcons</key>
<dict>
<key>GoldIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>GoldIcon</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
</dict>
</dict>
when switched to expo 53 and want to make all automatically with this package and prebuild, on IOS it's not adding this to Info.plist, similar like android have
<activity-alias android:name=".MainActivityGoldIcon" android:enabled="false" android:exported="true" android:icon="@mipmap/ic_launcher_gold_icon" android:targetActivity=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter android:autoVerify="true" data-generated="true">
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="https" android:host="app.getholodex.com" android:pathPrefix="/"/>
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity-alias>
so it works on android but not works on iOS
const changeIcon = (isEnabled: boolean) => {
try {
if (isEnabled) {
setAlternateAppIcon("GoldIcon");
} else {
resetAppIcon();
}
} catch (error) {
console.log(error);
}
};
Version: 8.0.0
I have one alternative and one default icon, in my previous implementation I have in Info.plist
when switched to expo 53 and want to make all automatically with this package and prebuild, on IOS it's not adding this to Info.plist, similar like android have
so it works on android but not works on iOS