Avoid using dispatch_sync on main queue in ios app delegate
Avoid using dispatch_sync which can cause deadlock when dispatch_async is sufficient for push registration, as dispatch_sync can easily cause deadlock when combine with other synchronous waits in the app