I'm using Xcode 7 and developing an app with push notification. However, I found out that all push notifications cannot be shown on iOS 10 devices. Is there any solution to fix it?
P.S. push notification is working fine on iOS 9.
I'm using Xcode 7 and developing an app with push notification. However, I found out that all push notifications cannot be shown on iOS 10 devices. Is there any solution to fix it?
P.S. push notification is working fine on iOS 9.
Update to Xcode 8 is compulsory~ Otherwise, push notification would not work on iOS 10
I'm currently having the same issue here.
I believe the problem could be the following:
The Firebase iOS 10 implementation uses the following pre-compiler macro:
#if defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
Well, Xcode 7 works with the iOS 9 SDK so the __IPHONE_OS_VERSION_MAX_ALLOWED
's value is __IPHONE_9_3
which is lower then the __IPHONE_10_0
's value.
Basically when you build the project with Xcode 7, the iOS 10 Firebase implementation won't be compiled into the application.. Moreover Xcode 7 cannot recognise the UserNotifications
framework..
I tried to copy the iOS 10 SDK into Xcode 7's directory but it was a bad idea