You need #available(iOS 10.0, *)
syntax to separate your logic for iOS 10.0+ or else. I am sure you can find a lot of answers in here.
Local and Push Notifications in IOS version compatible
1
solved what is the way to create local notification in iOS 10 . does it work in older iOS version? [closed]