Local and Push Notifications in IOS 9 and 10 using swift3
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I developed local Notifications in iOS 10 . It is working perfectly. But now how should i code local notifications and push notification if user is using iOS 9 and above versions. Can anyone help please? Below is code in iOS 10 import UIKit import UserNotifications @available(iOS 10.0, *) class ViewController: UIViewController,UNUserNotificationCenterDelegate { override func viewDidLoad() { super.viewDidLoad() if #available(iOS 10.0, *) { //Seeking permission of the user to display app notifications UNUserNotificationCenter.current()