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 )