Commit c41cc747 by Frank Gregor

Fixes the fix of wrong completionHandler call

Unfortunately the last fix introduces a new bug! The call for `[[UIApplication sharedApplication] registerForRemoteNotifications]` *must* be handled on main thread! This is fixed now.
parent 2bd3b802
......@@ -38,8 +38,10 @@
return;
}
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