UIApplication.registerForRemoteNotifications() must be called from main thread only You can solve this issue with DispatchQueue.main.async { UIApplication.shared.registerForRemoteNotifications() } Tags: ios Share 11/02/2022 by nixuchen app store ios 0