Aaliya Aaliya - 8 months ago 298
Swift Question

Not able to import UserNotifications in iOS Swift

I'm trying to implement push notification by using Firebase. I have installed the 'Firebase/Core' and 'Firebase/Messaging' frameworks using cocapod.
I'm able to import FirebaseInstanceID & FirebaseMessaging in the File. But for "import UserNotifications" it says "No Such Module". I'm using Swift 2.1.1 and Xcode 7.3.1 and my targeted iOS is 8.1+ ...
Kindly Help, thanks in advance .


UserNotification is available from iOS 10 and later. Xcode 7.3.1 support upto iOS 9 only. If you need to use this framework. You need to update to latest Xcode(obviously Xcode8) which supports iOS 10.