Skip to content

Not adding in Info.plist info about alternative icon #257

@danylo-musiiaka

Description

@danylo-musiiaka

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);
    }
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions