Build 947, App rejected, Samsung App Store: Sound is played during "silent mode"

The Samsung testers send me some videos of different devices where they first switch on “silent mode” on their devices and then resume or start anew my app.

My app of course plays the sound - if Corona does not automatically switch off the sound when “silent mode” is on the sound is played - I have no clue how to test for “silent mode”.

There is no audio.*, system.*, os.* or native.* API call I know of.

Best,
Andreas

[import]uid: 107675 topic_id: 32924 reply_id: 332924[/import]

I have noticed similar behaviour in other Corona apps. Also in iOS.
Pleaso someone from Corona could take a look at that!?

Hope we can find a solution
Ernest [import]uid: 76413 topic_id: 32924 reply_id: 130812[/import]

I have noticed similar behaviour in other Corona apps. Also in iOS.
Pleaso someone from Corona could take a look at that!?

Hope we can find a solution
Ernest [import]uid: 76413 topic_id: 32924 reply_id: 130812[/import]

Filed a bug report: Case 18800 [import]uid: 107675 topic_id: 32924 reply_id: 131048[/import]

Filed a bug report: Case 18800 [import]uid: 107675 topic_id: 32924 reply_id: 131048[/import]

After some investigation, it turns out that this mute button that you were referring to was not a mute button at all. It was the phone’s ringer mode which can be set to silent or vibrate mode, which is not tied to the device’s volume controls and we must detect the ringer state change ourselves.

That said, we’ve recently modified Corona to mute audio output when the device is put into silent/vibrate mode. This change was made as of daily build #977.

Just so you know, most Android apps have this issue. Even the famous Angry Birds app does not mute audio when setting the ringer mode to silent or vibrate. So, now you can say your app does handles audio better than Angry Birds. :slight_smile: [import]uid: 32256 topic_id: 32924 reply_id: 134725[/import]

After some investigation, it turns out that this mute button that you were referring to was not a mute button at all. It was the phone’s ringer mode which can be set to silent or vibrate mode, which is not tied to the device’s volume controls and we must detect the ringer state change ourselves.

That said, we’ve recently modified Corona to mute audio output when the device is put into silent/vibrate mode. This change was made as of daily build #977.

Just so you know, most Android apps have this issue. Even the famous Angry Birds app does not mute audio when setting the ringer mode to silent or vibrate. So, now you can say your app does handles audio better than Angry Birds. :slight_smile: [import]uid: 32256 topic_id: 32924 reply_id: 134725[/import]

Hi Joshua,

thanks a lot, and I’m sorry for my late answer - quite a lot was happening with my game “Freeze!”.

This is very good news about the silent mode. But what’s an “Angry Bird”? :wink:

As you wrote to me some time ago you want to have a closer look at the Samsung AP Store, so just FYI:

The Samsung app store backend & review process is quite strange and buggy in some aspects.
They keep changing the backend to make it better, but they introducing new problems: right now there is no “add trial” button anymore when your app is already on sale. You have to make an update to the full version and the the button appears, but ONLY in the Pre Certification phase - when the update is In Certification the button disappears again…

Another thing: If you want to make an update to your app after it was rejected because it won’t run on some devices of one or more Samsung device families, you cannot do this. It is not possible to remove devices you already selected once, it’s only possible to ADD devices. The only solution is to completely remove the app and start a new one with the same name (this is possible). But I had to input all the localized data for 10 languages etc. again and again, I had to repeat this process three times because Samsung only reported some devices where the app failed every try.

And, now some small stuff that is very annoying: You have to add review notes to your metadata. But don’t use characters like “:” or “!”, it will always say that some characters are not accepted (but won’t tell you WHICH characters) and you won’t be allowed to complete the process. This was bad for me because the games title is “Freeze!” and I just didn’t think that “!” could be the problem, so it took me al long time. So it’s best if you take every special character out, just use the normal a-z, 0-9 and “.” and “,”, then you’ll be fine.

Oh, and don’t use the word “Button” - Samsungs automatic check for offensive language stumbles across the “butt”. So please use “but-ton”. :slight_smile:

At least Samsung fixed the support contact, now they do reply to questions posted using support. And they told me they know about their butt-problem.

Have fun looking into the Samsung store,
best,
Andreas
[import]uid: 107675 topic_id: 32924 reply_id: 135415[/import]

Wow… I’m sorry to hear that you’re having such a rough time with the Samsung app store. The “Button” word being flagged as offensive is especially crazy. :stuck_out_tongue:

In any case, we just wanted to let you know that we addressed this issue and we still have your other issues queued in our bug tracking system. We haven’t forgotten. The only thing we could not reproduce is the crash with the “rateApp” popup, which we e-mailed you about last week.

Regarding silent-mode fix, if you want to verify this fix for yourself on *any* Android device, the easiest thing to do is to hold down the power button on your Android device until a popup window appears. That popup window should provide a silent/vibrate mode option. Please give it a go on your end if you want. [import]uid: 32256 topic_id: 32924 reply_id: 135501[/import]

Hi Joshua,

thanks a lot, and I’m sorry for my late answer - quite a lot was happening with my game “Freeze!”.

This is very good news about the silent mode. But what’s an “Angry Bird”? :wink:

As you wrote to me some time ago you want to have a closer look at the Samsung AP Store, so just FYI:

The Samsung app store backend & review process is quite strange and buggy in some aspects.
They keep changing the backend to make it better, but they introducing new problems: right now there is no “add trial” button anymore when your app is already on sale. You have to make an update to the full version and the the button appears, but ONLY in the Pre Certification phase - when the update is In Certification the button disappears again…

Another thing: If you want to make an update to your app after it was rejected because it won’t run on some devices of one or more Samsung device families, you cannot do this. It is not possible to remove devices you already selected once, it’s only possible to ADD devices. The only solution is to completely remove the app and start a new one with the same name (this is possible). But I had to input all the localized data for 10 languages etc. again and again, I had to repeat this process three times because Samsung only reported some devices where the app failed every try.

And, now some small stuff that is very annoying: You have to add review notes to your metadata. But don’t use characters like “:” or “!”, it will always say that some characters are not accepted (but won’t tell you WHICH characters) and you won’t be allowed to complete the process. This was bad for me because the games title is “Freeze!” and I just didn’t think that “!” could be the problem, so it took me al long time. So it’s best if you take every special character out, just use the normal a-z, 0-9 and “.” and “,”, then you’ll be fine.

Oh, and don’t use the word “Button” - Samsungs automatic check for offensive language stumbles across the “butt”. So please use “but-ton”. :slight_smile:

At least Samsung fixed the support contact, now they do reply to questions posted using support. And they told me they know about their butt-problem.

Have fun looking into the Samsung store,
best,
Andreas
[import]uid: 107675 topic_id: 32924 reply_id: 135415[/import]

Wow… I’m sorry to hear that you’re having such a rough time with the Samsung app store. The “Button” word being flagged as offensive is especially crazy. :stuck_out_tongue:

In any case, we just wanted to let you know that we addressed this issue and we still have your other issues queued in our bug tracking system. We haven’t forgotten. The only thing we could not reproduce is the crash with the “rateApp” popup, which we e-mailed you about last week.

Regarding silent-mode fix, if you want to verify this fix for yourself on *any* Android device, the easiest thing to do is to hold down the power button on your Android device until a popup window appears. That popup window should provide a silent/vibrate mode option. Please give it a go on your end if you want. [import]uid: 32256 topic_id: 32924 reply_id: 135501[/import]

Hi

I’m wondering if the #977 build went a little overboard with that fix!?
If you set the device mode to silent or vibrate and start some background music, that music still plays.
And it should, but if you start a corona app on that device all sound is disabled. Your background music stops, and you’ll have to kill the app to get it back.

NO, it has nothing to do with the mix mode! (That is in place and working fine.)

Strange thing is:
Music continues to play as it should on Samsung S3, but does not on Samsung S2 or HTC X (and probably a lot of other makes and models too)

Here’s how to test:

  1. Set ringer mode to silent or vibrate.
  2. Start some music (Like radio)
  3. Fire up any corona app that has audio enabled.
  4. Notice that all sound disappears.
  5. Also note that you’ll have to kill the app to get it back.

Any solution to this available? [import]uid: 63706 topic_id: 32924 reply_id: 135881[/import]

Would you mind writing up a bug report about this please? You can do so by clicking the “Report a Bug” link at the top of this page. Please indicate in the bug report which devices have that behavior and which don’t (just like you did up above)… and also indicating what Android OS version they are running. This will help us isolate the problem, because I suspect that there is a difference in mute behavior between OS versions.

And one question for you. Does music start playing again when you press the Home button within your app? Just trying to determine if suspending it un-mutes audio. Thanks. [import]uid: 32256 topic_id: 32924 reply_id: 135944[/import]

I’ll go report it then :slight_smile:

And home or back(out-of-app) doesn’t work.
We use the native request exit on backing out of our apps.

You have to go through app management and kill the app. ( step 5 was trying to explain that )
[import]uid: 63706 topic_id: 32924 reply_id: 135946[/import]

Oh wow… you have to force close/quit the app to restore audio? That’s really bad. I’m not sure why it’s doing that since we do un-mute the app’s audio when suspending/exiting. We’ll have to look into this for sure. Thanks for reporting it.
[import]uid: 32256 topic_id: 32924 reply_id: 135950[/import]

Hi

I’m wondering if the #977 build went a little overboard with that fix!?
If you set the device mode to silent or vibrate and start some background music, that music still plays.
And it should, but if you start a corona app on that device all sound is disabled. Your background music stops, and you’ll have to kill the app to get it back.

NO, it has nothing to do with the mix mode! (That is in place and working fine.)

Strange thing is:
Music continues to play as it should on Samsung S3, but does not on Samsung S2 or HTC X (and probably a lot of other makes and models too)

Here’s how to test:

  1. Set ringer mode to silent or vibrate.
  2. Start some music (Like radio)
  3. Fire up any corona app that has audio enabled.
  4. Notice that all sound disappears.
  5. Also note that you’ll have to kill the app to get it back.

Any solution to this available? [import]uid: 63706 topic_id: 32924 reply_id: 135881[/import]

Would you mind writing up a bug report about this please? You can do so by clicking the “Report a Bug” link at the top of this page. Please indicate in the bug report which devices have that behavior and which don’t (just like you did up above)… and also indicating what Android OS version they are running. This will help us isolate the problem, because I suspect that there is a difference in mute behavior between OS versions.

And one question for you. Does music start playing again when you press the Home button within your app? Just trying to determine if suspending it un-mutes audio. Thanks. [import]uid: 32256 topic_id: 32924 reply_id: 135944[/import]

I’ll go report it then :slight_smile:

And home or back(out-of-app) doesn’t work.
We use the native request exit on backing out of our apps.

You have to go through app management and kill the app. ( step 5 was trying to explain that )
[import]uid: 63706 topic_id: 32924 reply_id: 135946[/import]

Oh wow… you have to force close/quit the app to restore audio? That’s really bad. I’m not sure why it’s doing that since we do un-mute the app’s audio when suspending/exiting. We’ll have to look into this for sure. Thanks for reporting it.
[import]uid: 32256 topic_id: 32924 reply_id: 135950[/import]

Andreas,

Just to make life more interesting, I’ve received a report that Google Play’s app reviewers do not want an app’s audio to be muted while the device is in “silent mode”, which is the exact opposite of what the Samsung App Store reviewers want.

We’re going to have to re-evaluate how “silent mode” should work in Corona sometime in the near future. We may have to make it a setting of some kind in Lua, meaning you may have to make separate builds for Google Play and Samsung just to make their app reviewers happy. We’ll keep you posted. And please feel free to post your ideas too.

Never a dull moment in the Android development world, eh? :slight_smile: [import]uid: 32256 topic_id: 32924 reply_id: 139498[/import]