Hi I am doing some testing using the native back button on android and getting a bit of odd results. Any help on this is appreciated, i might have found my first Corona bug (probably not), but still, exciting times!
I have a back button image programmed into “Screen 2” using an event listener (an image that if you click on takes you to “Screen 1”). I am on screen 1 then go to screen 2 then click back using the back button in the game then do this again 3 more times no problem.
Now if im in screen 1 then go to screen 2 and use the native android back button it does go back but does not use screen transitions and all audio channels get permanently muted, then if i go to screen 2 again then back to screen 1 it will crash second time around. This exact behavior is consistent not just one time.
In the end both the native back button and the event listener of the image call the same exact function “goToHome()” and are right next to eachother in the code so there really should be no difference with the result. The broken audio is telling me that maybe my “removeObjects()” function that gets called within goToHome is not completing when using the native back button.
--Code for native back button local function onKeyEvent2( event ) if ( event.keyName == "back" ) then goToHome() end return true end Runtime:addEventListener( "key", onKeyEvent2 ) --Back button programmed in the game backButton:addEventListener("touch", goToHome)