Just read a good article by Google developer regarding this "game_end" case, might probably worth reading for you:
Who lives and who dies? Process priorities on Android
The 2016 post talks about the "app" in general, not specifically a "game". But, from what i observed in 2018, almost ALL top android games studios, the AAA, ranked 1-100 of worldwide (with 1M+~100M+ downloads) still use the end game (exit) on their games (not send to background). I don't know why. Any insight please?
But, i am sure we do know most players do really want: not to be "trapped" in an app especially a mobile game. Yeah, the phone is also used for other work related activities, social media, communication, etc, not just gaming.
Please include the solution on 2.1.4, send to background is better than nothing, or at least don't "kill" the game_end yet on Android, especially
IF* (*out of my knowledge, note
**) it doesn't give error on "
Android" and was just on "
iOS" (just guessing? cmiiw),
~from what i read on the Docs only
iOS crash? ...
Android fine?
With this function you can end the game (and the
Game End Event will be triggered). This will not happen instantaneously, but rather at the end of the current step, so any code you have in the same step after this function has been called will still run. Please note that this function has the following restrictions:
- It will report an error on the Windows UWP and iOS modules as it is against the conditions of their respective Marketplaces.
- It will silently fail on the HTML5 module.
- It will work on Windows (including Steam Workshop), Windows Phone, Android, Linux and Mac.
...docs .vs. 1788 release notes)
**Note: regarding 1788 change: on my android devices game_end never give any errors at all so far, up to 1.4.1763 (stable version i use so far) and on gms 2.1.3 so far, game_end on android is fine on my end, that's why i concern with the 1788 change that doesn't seem broken on android, being afraid of it to be killed too on 2.1.4 because players need it, players use it, players want it, if it is not broken of course. But if broken, i give up to make them happy, so it is okay to be replaced with a new one rather than nothing.
new one coming soon:
https://bugs.yoyogames.com/view.php?id=28925
Recent updates to Android disallow this
While Android had only finally outlawed this anti-pattern recently
@Nocturne @YellowAfterlife I am sorry, could you please take me (url link) to that official note about the updates of the new rule, please? from which of their blog channel/page, i missed the news
recently in 2018?