How to make my app keep running in the bg

William Prothero waprothero at gmail.com
Thu Sep 29 20:45:41 EDT 2016


Scott:
I use the native sound player to play the sounds. Actually, what I really want to do is to keep the app in the foreground. I play the audio through my wifi and if it goes to background, the wifi gets disconnected and it’s a real pain. A previous version of this app stayed in the foreground. So, perhaps there is some kind of property that will keep an app in the foreground?
Bill

> On Sep 29, 2016, at 5:41 PM, Scott Rossi <scott at tactilemedia.com> wrote:
> 
> AFAIK, you can't do this on iOS for just a timer.  I was told from someone
> high up in Apple that the phone will automatically end or reset a
> backgrounded app after roughly 10 minutes or so (at most).  Audio is a
> different story, because Apple allows music-playing apps to run when
> backgrounded, but I imagine you'd need to make use of Apple's native music
> player for this to work.  I'm not sure if the native LC player qualifies
> -- have you already tried backgrounding an LC app with the native player
> running?
> 
> Don't expect to fool Apple by enabling a non-music-playing app to keep
> itself active by playing sound.  I was told this story: Apparently several
> versions back, Facebook came out with a version of their mobile app which
> included a player that played silence when backgrounded, as a means to
> keep itself active.  Apple discovered the behavior and slapped Facebook on
> the wrist, after which Facebook claimed it was a bug that was introduced
> by mistake.
> 
> It's possible the Apple has changed it policy on this over the last year
> or so, but I doubt it.  Google may be more forgiving with Android.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 9/29/16, 5:16 PM, "use-livecode on behalf of William Prothero"
> <use-livecode-bounces at lists.runrev.com on behalf of
> prothero at earthednet.org> wrote:
> 
>> Folks:
>> I have an app that plays sounds and I donąt want the iPhone to stop
>> playing them when the phone hibernates. I also have a timer that runs and
>> I donąt want it to stop after a minute or so.
>> 
>> So, how can I keep an app up front and running without constantly
>> touching the screen?
>> 
>> I know there is a way to do this, but how?
>> Thanks,
>> Bill
>> 
>> 
>> 
>> William Prothero, Ph.D.
>> University of California, Santa Barbara, Emeritus
>> prothero at earthednet.org
>> 
>> 
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list