Dan, have a look at suspend in the dictionary for LC 10 dp6. It is sent to the current card when the application moves to the background so I think you’ll need an ON SUSPEND handler in the card script. I havent actually tried it yet.
Mark Sent from my iPhone > On Sep 2, 2023, at 4:27 PM, Dan Friedman via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Jacqueline, > > Thank you for the reply. I don’t think suspend and resume are going to help… > If the app is playing music (in the foreground or the background) and the > user brings up the list of running apps and swipes up to remove it, how can I > trap that the app is being closed and stop playing music? > > -Dan > > > > From: use-livecode <use-livecode-boun...@lists.runrev.com> on behalf of J. > Landman Gay via use-livecode <use-livecode@lists.runrev.com> > Date: Friday, September 1, 2023 at 3:37 PM > To: How to use LiveCode <use-livecode@lists.runrev.com> > Cc: J. Landman Gay <jac...@hyperactivesw.com> > Subject: Re: Shutdown on Android >> On 8/31/23 5:36 PM, Dan Friedman via use-livecode wrote: >> Does the shutdown message (or shutdownRequest message) work on Android? I >> am playing a song using androidStartAudioPlayingInBackground. However, if >> the app is closed (swiping up to exit it), then the audio continues to play. >> So, I added an androidStopAudioPlayingInBackground command in the shutdown >> message to stop playing the audio. But doesn’t seem to work – audio >> continues to play. >> >> Any thoughts? > > Mark Smith reminded me that the suspend and resume messages are now supported > on mobile > platforms. That might do it. > > My old brain forgot about that. > > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode