Feature request: IOS dynamic app icons
complete
Ladislav Soukup
Can you please consider adding support for “dynamic app icons” to expo?
Since iOS 11.3, app can specify more app icons and can switch between them using code.
It is quite easy, but requires bundling the icons in .xcasset file and entry in .plist file.
Info how to do it is here:
And of course in swift / objective-c API docs from Apple.
Evan Bacon
complete
Marking this as complete since the feature works with custom dev clients and Managed EAS Build.
We added this as an Expo config plugin. Here is a working config plugin to an existing package (iOS only).
Demo
Snehasis Debbarman
Evan Bacon: Not working
Snehasis Debbarman
Evan Bacon: Not working
Kim Brandwijk
open
Evan Bacon
planned
We plan to add this as an Expo config plugin. Here is a proof of concept.
Maxwell Morrow
Evan Bacon: Thanks so much for putting this together. I'm on a project where this feature is extremely important. I gave it a try, and while my build succeeded, it didn't seem to function as expected.
Do you happen to have an example project with this plugin working?
Evan Bacon
Maxwell Morrow: Ya the repo has an example app in it. Feel free to open an issue with your findings on that repo.
Maxwell Morrow
Evan Bacon: You're the man, thanks so much. I'll give it a try now.
Maxwell Morrow
Evan Bacon: Can this plugin be used with an Expo app using the Managed Workflow?
Sergey King
Evan Bacon: love this
Wodin
Maxwell Morrow: Yes, as long as you use EAS Build or
expo run:ios
(see also https://docs.expo.dev/build-reference/local-builds/)Evan Bacon
Merged in a post:
Dynamically Change the App Icon
MomoAmoory
Dynamically Change the App Icon in Android + ios and control it from app.js
Scott Pritchard
The app icon is bundled into the native assets, and set in such a way that it wouldn't be changeable from JS without an update to the app.
Noé Lebrun
There's also a react native library for it as an example: https://github.com/kamsteegsoftware/react-native-alternate-icons