system.exit()
Wee question, using system.exit() to quit for Android (I make little things for my partner) and this leaves an app running that needs to be 'killed'. Not a biggie but wondered if there was a cleaner way to exit. Using export to APK
Wee question, using system.exit() to quit for Android (I make little things for my partner) and this leaves an app running that needs to be 'killed'. Not a biggie but wondered if there was a cleaner way to exit. Using export to APK
This is probably a limitation of the chromium/electron runtime environment that JavaScript code cannot close the main application window. The same in browsers - otherwise it would be like in IE where you could even shake the window, close it, and everyone hated it.
init = function()
system.javascript("""window.close()""")
end
This code closes the Firefox( windows ) browser window/tab when the browser window/tab was created by javascript code. Maybe it will work on android!!!
Worth a try so thanks =^^=
Ah need to get more up to speed on using javascript within, as it were, but no biggie. The html and windows version is fine on exit and its for a fun jam anyway. I think my partner is more annoyed at me for making noises to add at this point. Long suffering tester that they are =^^=