making an app permanently in the foreground

Community based support for the Digium Phone Application Programming Interface (API).

Moderators: jwitt, sruffell, malcolmd, Moderator

making an app permanently in the foreground

Postby wallnutmonkeys » Mon Jul 22, 2013 2:31 pm

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')?

cheers

wallnut
wallnutmonkeys
Newsterisk
 
Posts: 28
Joined: Thu Feb 10, 2011 9:52 pm

Re: making an app permanently in the foreground

Postby sruffell » Tue Jul 23, 2013 11:00 am

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?
sruffell
Oldsterisk
 
Posts: 200
Joined: Fri Jan 07, 2011 2:02 pm

Re: making an app permanently in the foreground

Postby wallnutmonkeys » Tue Jul 23, 2013 11:42 am

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

wallnut
wallnutmonkeys
Newsterisk
 
Posts: 28
Joined: Thu Feb 10, 2011 9:52 pm


Return to Digium Phone API

Who is online

Users browsing this forum: No registered users and 1 guest