Good morning, everyone!
I have been working on an app that is basically a timer/calorie counter, with which Bernd has helped immensely.
Is it possible to have an app still active (ie. timers running/alarms firing) if the phone has gone to sleep?
The app I'm working on requires at least 15 minutes of the phone being "on." After those 15 minutes, an alarm sound plays, prompting the user to reset the timer. The problem I am running into is that the phone "sleeps" after 1 minute, and it appears that the timer stops and doesn't restart until the phone is "on" and active again.
I didn't expect this, as the iOS Simulator never "sleeps."
Any suggestions?
:Todd
Keeping app active while phone sleeps?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Keeping app active while phone sleeps?
Hi Todd,
look at "Idle Timer configuration" in the release notes. As of end of January of this yeare you can disable the going idle and stopping the app.
Kind regards
Bernd
look at "Idle Timer configuration" in the release notes. As of end of January of this yeare you can disable the going idle and stopping the app.
Kind regards
Bernd
Re: Keeping app active while phone sleeps?
Thanks Bernd.
I'll have a look!
:Todd
I'll have a look!
:Todd
Re: Keeping app active while phone sleeps?
Todd,
if you want the app to go on with the timers while it is "in the background" this will not work yet. Livecode iOS apps don't support "background mode" yet. So you will have to keep the app "awake"
Kind regards
Bernd
if you want the app to go on with the timers while it is "in the background" this will not work yet. Livecode iOS apps don't support "background mode" yet. So you will have to keep the app "awake"
Kind regards
Bernd
-
- Posts: 111
- Joined: Sun Aug 23, 2009 7:48 am
- Contact:
Re: Keeping app active while phone sleeps?
The background task is limited to 10 minutes to most applications so it won't be an alternative even when LC supports it.
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3