Posts

Post not yet marked as solved
1 Replies
0 Views
I've removed mgr.saveToPreferences { error in if let error = error { print("Couldn't save push manager prefs: \(error)") } } and add localManager.loadFromPreferences { error in precondition(Thread.isMainThread) if let error = error { os_log("Error loading NEAppPushManager: %{public}@", error.localizedDescription) // Handle error return } localManager.saveToPreferences { error in if let nsError = error as NSError? { os_log("did not save configuration, error: %{public}@", nsError.localizedDescription) // Handle error return } os_log("Did Save Configuration Successfully") // Checkout logs here } } result came out as below is active: Optional(false) Did Save Configuration Successfully It seems that the setting for push manager in done, but NEAppPushProvider still not working.