Hi,
My Appworkfine in Google & Apple ,but in Amazon is reject
_Bug Description: Functionality fail
Steps to Reproduce:
- Launch the app.
- On app home page, tap on “Volume” button.
- Volume button of the app does not work_
Then , copy your solution a I fixed de problem coded this for Amazon
if ( device.isAndroid )
then
Runtime:addEventListener( “key”, onKeyEvent )
end
…
function onKeyEvent( event )
local phase = event.phase
local keyName = event.keyName
– print( event.phase, event.keyName )
– HOME
if (“menu” == keyName and phase == “up”)
then
native.requestExit()
end
– BACK
if ( “back” == keyName and phase == “up” )
then
native.requestExit()
else
native.requestExit()
end
if ( keyName == “volumeUp” and phase == “down” )
then
local masterVolume = audio.getVolume()
– print( “volume:”, masterVolume )
if ( masterVolume < 1.0 )
then
masterVolume = masterVolume + 0.1
audio.setVolume( masterVolume )
end
end
if ( keyName == “volumeDown” and phase == “down” )
then
local masterVolume = audio.getVolume()
– print( “volume:”, masterVolume )
if ( masterVolume > 0.0 )
then
masterVolume = masterVolume - 0.1
audio.setVolume( masterVolume )
end
end
return true
end
and in build i included
androidPermissions=
{
“android.permission.MODIFY_AUDIO_SETTINGS”},
but Amzon reject my App
_Bug Description: App is unstable
Steps to Reproduce:
- Install and Launch the app.
- Press the volume buttons of the device .
- The app force closes to the device screen_
Thanks