Making an app permanently in the foreground

Hi, me again, im trying to set my app to be in the foreground at all times. Currently something is backgrounding it. Is there another way besides using a timer in which I call digium.foreground(‘myapp’)?



Are you looking for digium.resetIdleTimer()? I think you’ll still need to call it in a timer that you set.

Is there a reason you do not want to run a timer?

no I dont mind running a timer, I would of prefered someway to tell the phone never to put my app in the background. But the timer will be fine.

thx for the help