Swift ios check if remote push notifications are enabled in ios9 and ios10 -
how can check if user has enabled remote notifications on ios 9 or ios 10?
if user has not allowed or clicked no want toggle message asking if want enable notifications.
this answer outdated , doesn't support on ios 10, can check this answer.
use code
let isregisteredforremotenotifications = uiapplication.shared.isregisteredforremotenotifications if isregisteredforremotenotifications { // user registered notification } else { // show alert user not registered notification }
Comments
Post a Comment