2017-09-27 10 views

Répondre

7

Ok je l'ai trouvé:

let center = UNUserNotificationCenter.current() 
center.getNotificationSettings { (settings) in 
    if(settings.authorizationStatus == .authorized) 
    { 
     print("Push authorized") 
    } 
    else 
    { 
     print("Push not authorized") 
    } 
} 
Code

par: Kuba