FCM Push notification not working in iOS 11

后端 未结 3 1155
天涯浪人
天涯浪人 2020-12-19 22:48

I need to handle push notification and that\'s done with a lower version of ios but in ios 11 never receive any push notification. I using Firebase Cloud Messaging. please,

3条回答
  •  粉色の甜心
    2020-12-19 23:33

    Problem seems to be with

    • FirebaseInstanceID Version less than 1.0.9

    • FirebaseInstanceID Version between 2.0.1 - 2.0.3

    Set your pod file as below :

    For Swift 2.3 and Xcode 8 : (FirebaseInstanceID v1.1.0 gets installed)

    pod 'Firebase/Core', '3.8.0'
    pod 'Firebase/Messaging'
    

    For Swift 3 and Xcode 9 :

    pod 'Firebase/Core'
    pod 'Firebase/Messaging'
    pod 'FirebaseInstanceID', "2.0.0
    

    I didn't want to upgrade to FirebaseInstanceID 2.0.0 to fix the issue as I wanted use Swift 2.3 only

提交回复
热议问题