setAlternateIconName not working (on some devices)

I have a strange problem using an alternate icon using setAlternateIconName.

A primary app icon is defined via the Assets.xcassets and an alternative icon via the Info.plist (the files are copied into the project).

Everything works fine on an iPhone 11 Pro Max with iOS 15.0.

On an iPhone Xs with iOS 15.0, however, I observe the following behavior: the primary icon is visible when installing the app. The alternative icon can also be activated. If I then switch back to the primary icon, the alternative and not the primary icon appears directly in the iOS in-app dialog. If I then move the app to the background, I see the primary icon on the home screen for a second as desired, but then it changes back to the alternative icon. Thus, the primary icon cannot be restored at any time. At the same time, the app also receives the information that the alternative icon name is nil, so that the primary icon should be displayed - but this is not the case.

I also don't get an error message about a possibly missing image file and it only happens on one of two (physical) test devices.

Does anyone have any advice on what to investigate further?

Answered by effxbe in 690455022

The issue has been fixed with iOS 15.0.1

Accepted Answer

The issue has been fixed with iOS 15.0.1

setAlternateIconName not working (on some devices)
 
 
Q