Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as unsolved with 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.