Amazon rejection due to sound playing after leaving app
DigiChain
Member, PRO Posts: 1,288
This has been a problem for me for a long time - but my apps have always been accepted (until now).
This is the Amazon rejection email I've received:
Your app has failed a test case.
Bug Description:Functionality Fail.
Steps to Reproduce:
1.Install and launch the app
2.tap on new game
3.Tap on device home button or device back button, game sound is still heard.
I'm using stable build 0.12.10.
Does anyone know a fix for this??
Thanks
Comments
Oh no, about to submit mine too.
Make sure music is .m4a and uses the play music behavior.
Make sure only sound effects use the play sound behavior and are .ogg.
@strag - it's sound effects that are causing the problem for me.
I've used .wav files, and always have for past 3 years without being aware of this as an issue.
Are you sure it's definitely down to them needing to be .ogg??
I've now tested this with .WAV and .OGG files and it makes no difference - sound continues to play when you press the back/home button on Android.
Is there a solution??
I think its a generic problem as i remember people complaining about the sound still playing when GS kindly (cough cough) uploaded all our games to Amazon.
I had this issue and I used the hibernate function with a pause music and in the other section I put a un-pause game, I put this on every scene worked for me.
@BBEnk - do you know if that fix works for Sound as well as Music?
The music in my game stops as expected - but its the sound effects which are causing the issue and continue to play.
@DigiChain, how long do they play? Do you have sound effects which run so long?
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
I never tried it with sound, my issues was with music not stopping, are you looping sound?
@Hopscotch - Some sounds are pretty long... 30 sec+ (VO narration etc) but prefer to keep them as sound effects so that I can have music too.
@BBEnk - Generally the sounds are not looped. I've also tried checking/unchecking run to completion to see that makes any difference. It doesn't.
I see. In this case try expanding on the suggestion from @BBEnk. Add a
Change Attribute game.Audio.Sound Volume = 0
on Hibernate, and back to 1 in the "otherwise" section.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
@Hopscotch
Ah, that sounds like a very good idea. I'll give that a go...
Did the hibernate behaviour change? I remember a GS staffmember saying before that "On hibernate" was specifically aimed at the Nook devices.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
No - just tested using the hibernate behaviour and it doesn't work.
I think I've been lucky getting games onto Amazon until now as these issues have been present for a long time. Maybe Amazon are getting strict on the rules now.
Looks like Amazon isn't an option until GS sort this out
I will work on getting this fixed after we get iOS 64bit support out the door. I bump up the bug importance.
@BlackCloakGS
Great! Thank you.
I had an app rejected by Amazon because it continued playing music when going into hibernate. My problem was that I was using the play sound behavior for the music. If you do that it does not pause on hibernate. I changed it to a play music behavior (must be m4a) and it worked. I know this is a different issue to yours but just wanted to share what I learnt.
I have got around that issue by importing the looping sounds as music (MP3 files) and not sounds. If the sound is not set to loop you will not have a problem but if it loops it will continue to play when the device is in hibernation. My suggestion is to try importing your looping sounds as music files MP3 format or m4a and see if that fixes your Android issue. It worked for me on my latest game.
Free Mini Games and Demo Templates
@neoman but if you already have looping music, then you can't use looping music (the sound fx) atop looping music right?
The music option would work if you only need to play one file - but you can't play multiple music files at the same time.
@neoman - all sounds are causing the problem for me (not just loops). Most of the time you won't notice because your effects may only be 1 or 2 seconds long, but if you have longer sound effects and press home/back midway through them playing they will continue to play until the end.
@lkmad Yes unfortunately if you already have looping music playing and start a new looping music instant in the same scene the original one will stop ... In my game I didn't have any looping music in my first scene so it worked.
@DigiChain Yes you have a point. You have a high quality problem. My issue was a lot simpler than that and the looping music fixed it. In my experience Android and Tizen are a bit of a hit and miss. The same project works fine on IOS but I always have to implement work arounds for Android and Tizen. Hopefully BlackCloakGS will fix the issue soon as it has been around for a very long time and you can publish your project soon. It will be bumped up on the bug list which is a good sign ...
Free Mini Games and Demo Templates
does the hibernate idea that was mentioned work for Android (other than Amazon)?
I'm also interested in whatever other workarounds one needs to address for the Android as I won't be able to test it myself. @neoman
Sorry to hog your thread @DigiChain!
@Ikmad - no the hibernate doesn't work work for android in my experience. It won't be an issue getting your game onto Google Play though as they have no review procedure.
Google play accepts indeed. My last game has this problem too.
Lump Apps and My Assets
@DigiChain okay, I guess I can submit as is then, and then update to fix it once the bug is resolved.