How to close your app programmatically

will do the trick. Shutdown happens immediately. If you do this in a live app it’s probably a good idea to let the user know and wait for a button click, or perhaps integrate a timer before the shutdown occurs.

About Jay Versluis

Jay is a medical miracle known as a Super Survivor. He runs two YouTube channels, five websites and several podcast feeds. To see what else he's up to, and to support him on his mission to make the world a better place, check out his Patreon Campaign.

Add your voice!