Commit 89505fd7 by Maurits van Beusekom Committed by GitHub

Merge pull request #297 from open-xchange/fix_notification_strategy_ios

Fixes the fix of wrong completionHandler call
parents 929a7dda c41cc747
......@@ -38,8 +38,10 @@
return;
}
[[UIApplication sharedApplication] registerForRemoteNotifications];
completionHandler(PermissionStatusGranted);
dispatch_async(dispatch_get_main_queue(), ^{
[[UIApplication sharedApplication] registerForRemoteNotifications];
completionHandler(PermissionStatusGranted);
});
}];
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment