skb1129 / react-native-change-icon

Change your application icon programmatically for React Native apps
MIT License
500 stars 91 forks source link

Feature: add suppressNotification option to iOS #92

Closed maxinminax closed 1 year ago

maxinminax commented 1 year ago

By default, ios will show alert after change icon, please add option suppressNotification to disable that alert

skb1129 commented 1 year ago

@maxinminax the icon change alert is a system triggered alert, Apple does not provide a way for us to disable it. When we use setAlternateIconName, the system triggers a notification named UIApplicationDidChangeIconNotification to inform observers that the app icon has changed. This notification is part of the system's behavior and isn't meant to be directly disabled or suppressed by developers.