Page 1 of 1

Audio control stops playing mp3 files when iPad / iPhone goes into standby mode!

Posted: Wed Nov 25, 2015 5:06 pm
by Pierre Gallaz

Hi,
I am a paying subscriber to appery.io and I am encountering a problem with my app on IOS. It's a guided meditation app, which basically plays mp3 guided meditations using appery.io audio control. The HUGE problem is that, on IOS, the mp3 files stop playing whenever the iPhone / iPad goes into standby. It is highly frustrating for my users, since they basically have to switch their standby settings to "never" in order to be able to listen to the whole file. Is there a known fix for this?


Audio control stops playing mp3 files when iPad / iPhone goes into standby mode!

Posted: Wed Nov 25, 2015 5:07 pm
by Pierre Gallaz

In case it's important, I compiled the ipa using xcode and not appery.io's own compiler.


Audio control stops playing mp3 files when iPad / iPhone goes into standby mode!

Posted: Thu Nov 26, 2015 7:52 am
by Pierre Gallaz

I found the description of a fix here, but it is too technical for me:

http://stackoverflow.com/a/12414719/8...

I also found this Cordova plugin:

https://github.com/EddyVerbruggen/cor...

If you think the plugin might fix the problem, could you please explain me how to add it and use it in my project?

Thanks.


Audio control stops playing mp3 files when iPad / iPhone goes into standby mode!

Posted: Thu Nov 26, 2015 9:02 am
by Evgene Karachevtsev

Pierre,

This link should help: https://devcenter.appery.io/documenta...


Audio control stops playing mp3 files when iPad / iPhone goes into standby mode!

Posted: Thu Nov 26, 2015 7:08 pm
by Pierre Gallaz

Thanks Evgene,

I will look into it and try, but I would like to be sure that there is not a simpler solution that I can use within appery.io's own features! :-( I am not an actual programmer, which is why I'm using appery in the first place.

Being able to keep on playing an mp3 music file when the phone is locked sounds like a very basic feature, and it does work fine on the android version.

Is this a bug that you are aware of, and are you planning to fix it?
Is there nothing I can do to fix it without using a plugin or changing the code itself?

Basically, it means that anyone planning to create for instance a rock band app with a music player using appery will have problems (unless they use soundcloud or other external players).


Audio control stops playing mp3 files when iPad / iPhone goes into standby mode!

Posted: Fri Nov 27, 2015 10:14 am
by Serhii Kulibaba

Hello Pierre,

Also, you can use any JS player, e.g. http://jplayer.org/


Audio control stops playing mp3 files when iPad / iPhone goes into standby mode!

Posted: Sun Nov 29, 2015 8:00 pm
by Pierre Gallaz

OK.

I was stupid.

I was a simple matter of setting the permissions (capabilities) properly in xcode. It seems that this was enough to solve the issue. My apologies!