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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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