Firebase - Cannot assign value of type 'AppDelegate' to type 'UNUserNotificationCenterDelegate?'

后端 未结 1 597
感情败类
感情败类 2021-02-07 12:02

I always get compiling erros when deploying firebase using this tutorial: https://firebase.google.com/docs/cloud-messaging/ios/client My deployment SDK is 9.0.

E

相关标签:
1条回答
  • 2021-02-07 12:27

    At the end of AppDelegate you need to add 2 extensions (UNUserNotificationCenterDelegate, MessagingDelegate)

    See the source code from this sample app: https://github.com/firebase/quickstart-ios/tree/master/messaging

    0 讨论(0)
提交回复
热议问题