iphone - Why background task is ending after 10 minutes -
i badly in need of background task run always, when application in background.
it needed voip application. steps done voip app.
i using following script run background task
- (void)applicationdidenterbackground:(uiapplication *)application { uiapplication *app = [uiapplication sharedapplication]; uibackgroundtaskidentifier bgtask; self.bgtask = [app beginbackgroundtaskwithexpirationhandler:^{ [app endbackgroundtask:self.bgtask]; }]; }
after using it, when application goes background, within 10 minutes if sip call comes uilocalnotification
appear. after 10 minutes if sip call comes uilocalnotification did not appear.
please me.
have added voip
background mode uibackgroundmodes
key in application info.plist
file?
Comments
Post a Comment