You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on ios when I start the task on foreground everything works fine
but when I goes into background nothing happen at all
after looking at the actual ios implementation for the BGTaskScheduler I found out that the registered BGRefresh operation do nothing except waiting 25 seconds
private static func handleAppRefresh(task: BGAppRefreshTask) {
let queue = OperationQueue()
let operation = AppRefreshOperation()
task.expirationHandler = {
operation.cancel()
}
operation.completionBlock = {
// Schedule a new refresh task
scheduleAppRefresh()
task.setTaskCompleted(success: true)
}
queue.addOperation(operation)
}
Activity