Could you explain me the correct manner to manage the background mode app work more then 3 minutes.
My app is a timer-app notification. It works fine for 3 minutes and i got local notification in the background . If I set it to more then 3 minutes, it only works (in the background) for 3 minutes, then it's not get any local notification.
I know to iPhone application apple permit a 600 seconds (10 minutes) on background task to run and Watch application apple permit a 180 seconds (3 minutes) on background task to run.
So what i have does for application active more than 3 minutes in background?
My code is as follows:
ExtensionDelegate *del = (ExtensionDelegate *)[WKExtension sharedExtension].delegate;
del.strReminderTime = 60*15; // 15 min it's not work well.
// del.strReminderTime = 60*3; // 3 min it's work fine on background mode
ReminderTimer = [NSTimer scheduledTimerWithTimeInterval:del.strReminderTime target:self selector:@selector(notificationReminder) userInfo:nil repeats:YES];
How to implement? It is best to use.
Appreciate if any suggestion or idea.