App icon change only working when run after delay

Hi Everyone!


I have some questions regarding setAlternateIconName:

  1. For me it only works when I provide a delay before setting the new icon. I looked around and some other developers also faced the same issue (https://stackoverflow.com/questions/42195325/setting-alternate-app-icon-returns-error-3072-the-operation-was-cancelled-in, https://stackoverflow.com/questions/45169190/unable-to-set-alternate-app-icons-in-ios-11?noredirect=1&lq=1) Does someone here know why this works only with some delay ?
  2. As per the information available in documentation and some forums/articles, we need to provide images in project as png files (not in xcassets). So I have provided @2x and @3x app icon images. But how do we provide other icon images like notification icon, spotlight search and device settings icon ?


Thanks for help!

I have the same problem. I can change the icon of the app itself but i can't change the notification icon or the settings icon. is there another function to change the other icons or is this an issue with the icon names? Do i need to provide more photos for the notifications and settings?


my icon names are:

-Black@1x.png

-Black@2x.png

-Black@3x.png

-White@1x.png

-White@2x.png

-White@3x.png

same issue
App icon change only working when run after delay
 
 
Q