आईओएस 10 में पदावनत मैं आईओएस में UIUserNotificationSettings को लागू करने से 10UIUserNotificationSettings
एप्पल प्रलेखन आगे उपयोग के लिए नीचे दिए गए ढांचा दिया है की वैकल्पिक तरीका के लिए देख रहा हूँ। लिंक here में UNNotification सेटिंग्स।
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) {
(granted, error) in
//Parse errors and track state
}
यह:
किसी भी एक है जो मुझे नमूना कोड के साथ मदद कर सकते हैं बजाय अधिसूचना के
let notificationSettings = UIUserNotificationSettings(
forTypes: [.Badge, .Sound, .Alert], categories: nil)
application.registerUserNotificationSettings(notificationSettings)
क्षमा करें मुझे अभी जवाब मिला है। http://stackoverflow.com/questions/37956482/registering-for-push-notifications-in-xcode-8-swift-3-0 – Prav