Open mariusc opened 4 years ago
We just had a discussion about this and, as suspected, the AlertManager shouldn't be used like this. Let's investigate why it's public and if it can be private and only take care of the alerts shown from the SDK (force update alerts, what's new in version, etc)
See #76
Can be reproduced from that branch in the PR. Run the app, go to Alert Types, Tap on Open URL Alert and tap the Open URL button. It will open a webpage in safari. Go back and do that again. The app will crash
On a more or less related note: why would anyone use alerts like this? Why present alerts through NStack when you can do it much easily with the UIAlertController directly. Shouldn't AlertManager be private to NStack and only used by the SDK to show app update prompts or messages?