EddyVerbruggen / cordova-plugin-app-icon-changer

Change the homescreen icon of your Cordova iOS app at runtime!
MIT License
32 stars 20 forks source link

Intermittent suppressUserNotification not working #1

Open adcuz opened 7 years ago

adcuz commented 7 years ago

Great plugin! I just wanted to note an issue I have found with the suppressUserNotification feature. Sometimes when switching icons, the alert pops up despite suppressUserNotification being set to true. When this happens, after you dismiss the alert, the app goes completely black, and just the battery indicator is showing. The only way to continue is to close the app completely and re-open it.

Here is a video of it happening.

I have looked at the code, but cannot really fully understand what's happening as I'm not an iOS dev. It seems like a race condition of sorts here. I suspect that it's not going to be fixable, as it is a bit of a workaround already to suppress the notification from what I understand.

EddyVerbruggen commented 7 years ago

Oh bummer. Perhaps that's something for the readme then.