So if an error occurs on the simulator, the simulation will stop and ask to restart it.
Now on a phone, if the error occurs, I am going to guess that the app will freeze (not sure about this.)
If an error does occur, the user would not know about it.
So, is there a way where if an error occurs; the user will be prompted a message saying there is an error?