-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Bug Report
Plugin Version
6.0.0
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 7.2.0
@capacitor/core: 7.2.0
@capacitor/android: 7.2.0
@capacitor/ios: 7.2.0
Installed Dependencies:
@capacitor/cli: 7.2.0
@capacitor/core: 7.2.0
@capacitor/android: 7.2.0
@capacitor/ios: 7.2.0
[info] Using Gemfile: RubyGems bundle installed
[success] iOS looking great! 👌
[success] Android looking great! 👌
Platform(s)
iOS 18.4.1 on iPhone 13 mini
Current Behavior
I'm trying to set up this plugin for the first time. I have an Ionic React app.
When I run: await PluginAppIcon.change({ name: iconName, suppressNotification: false }); on an actual device, I get the error: Error: Alternate icons not supported.. However, this device is running the latest iOS (18), so I'm pretty sure it actually has support.
Expected Behavior
The icon should change with no error.
Code Reproduction
After getting the error, I tried calling isSupported() on iOS:
const iconSupport = await PluginAppIcon.isSupported();
if (!iconSupport.value) {
console.warn(
'App icon change is not supported on this version of iOS.',
);
return;
}
My device is returning false for isSupported(), but why (how can I debug this further)? This is a test build built on GHA and distributed through TestFlight.
I will submit a full reproduction later.
Other Technical Details
In XCode, I added the icons in App > App > Assets.xcassets, and the icons are named like icon_007841, icon_7851b2. I have added 5 custom icons in this way, and then there is AppIcon and Splash, which were put there by https://github.com/ionic-team/capacitor-assets.
In App.xcodeproj, on the Build Settings tab, I have set Include All App Icon Assets to Yes, and I have listed the file names of the alternate icons (icon_007841) in the Alternate App Icon Sets.
Additional Context
It looks like I'm getting the same error described here: skb1129/react-native-change-icon#36