iphone - How to make ios applications run in background and foreground on events -


i having application listen sounds ans give messages on frequencies.the program uses iphone microphone listening.

i want run in background , popup when particular event occurs. there way this.so need not run app in foreground always.only when event occurs should come foreground.

app couldn't bring foreground. user it. use local notifications. user see banner or alert , if taps on app bring foreground. example:

uilocalnotification *notification = [[uilocalnotification alloc] init]; notification.alertbody = @"event occurs"; notification.alertaction = @"open"; [[uiapplication sharedapplication] presentlocalnotificationnow:notification]; 

Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -