App rejected due to "back button"

App rejected due to “back button”

Before I submitted the app for review, I made sure this functionality works.

and it did work on my test device lumia 635

the rejection document states that App Reviewer used lumia 720  and lumia 1020

is lumia 635, lumia 720, lumia 1020 differs in behaviour as far as “onKeyEvents” work ?


local function onKeyEvent( event )
– If the ‘back’ key was pressed on Android or Windows Phone, prevent it from backing out of your app
local platformName = system.getInfo( “platformName” )
if ( platformName == “Android” ) or ( platformName == “WinPhone” ) then
if ( event.keyName == “back” ) then
– Navigate back one scene or display an ‘Are you sure you want to exit’ alert
return true
end
end

– Return false to indicate that this app is *not* overriding the received key.
– This lets the operating system execute its default handling of this key.
return false
end

– Add the key event listener
Runtime:addEventListener( “key”, onKeyEvent )


The “back” key event definitely works on those devices too.

Perhaps they don’t like how you are handling the back key?

Did they give you any more details?

Edit:

Case in point, the code you posted above will always block back key navigation.  As in, it would never let the end-user back out of your app.  I assume your actual back key handling code is different, because you’re expected to let the back key back out of your app when there are no more scenes in your Corona app to navigate back to.

They said, it was unresponsive.

But checking on my device it worked all the time.

So i resubmitted it, and made the dialog box bigger, buttons bigger and font bigger for the “exit dialog” box.

lets see how it goes.

Hi Josh,

I did not use the same exact code, it’s just an example on how the app was handling the back key.

i put my custom codes inside to handle the back key.

– Navigate back one scene or display an ‘Are you sure you want to exit’ alert

Hi Josh,

App got approved today!

Thank you so much for the help!

Title of the app is : Halloween Drops

http://www.windowsphone.com/en-us/store/app/halloween-drops-match-three-puzzle/4361bd86-e401-4185-ab54-ee26085b5bac

Great!  And just in time for Halloween!  :slight_smile:

The “back” key event definitely works on those devices too.

Perhaps they don’t like how you are handling the back key?

Did they give you any more details?

Edit:

Case in point, the code you posted above will always block back key navigation.  As in, it would never let the end-user back out of your app.  I assume your actual back key handling code is different, because you’re expected to let the back key back out of your app when there are no more scenes in your Corona app to navigate back to.

They said, it was unresponsive.

But checking on my device it worked all the time.

So i resubmitted it, and made the dialog box bigger, buttons bigger and font bigger for the “exit dialog” box.

lets see how it goes.

Hi Josh,

I did not use the same exact code, it’s just an example on how the app was handling the back key.

i put my custom codes inside to handle the back key.

– Navigate back one scene or display an ‘Are you sure you want to exit’ alert

Hi Josh,

App got approved today!

Thank you so much for the help!

Title of the app is : Halloween Drops

http://www.windowsphone.com/en-us/store/app/halloween-drops-match-three-puzzle/4361bd86-e401-4185-ab54-ee26085b5bac

Great!  And just in time for Halloween!  :slight_smile: