0

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.

adjuremods
  • 2,938
  • 2
  • 12
  • 17
ray
  • 141
  • 1
  • 11
  • hey @ray did you find a solution for this question? i'm also searching for a solution.. – Ganesh Kumar Oct 31 '16 at 11:54
  • @GaneshKumar i cannot find a solution so updated to xcode 8 and rewrite it . – ray Nov 02 '16 at 08:13
  • i have also updated the code to swift 3. but the push notifications are not received in my phone. can you help me with this? – Ganesh Kumar Nov 02 '16 at 08:35
  • @GaneshKumar I used Google Firebase service. It provides simply information on how to setup push notification. Check out this: https://firebase.google.com/docs/cloud-messaging/ios/client – ray Nov 05 '16 at 01:34

2 Answers2

1

Update to Xcode 8 is compulsory~ Otherwise, push notification would not work on iOS 10

ray
  • 141
  • 1
  • 11
0

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