12 April, 2023

Flutter Building for iOS with Firebase device token error

 To solve it add following to AppDelegate



 override func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {


   Messaging.messaging().apnsToken = deviceToken

   print("X__APNS: \(String(describing: deviceToken))")

   super.application(application, didRegisterForRemoteNotificationsWithDeviceToken: deviceToken)

 }



No comments:

Post a Comment

Featured Post

Content Writing VS Content Marketing: How are Both Different From Each Other?

Regardless of how long the businesses have been introduced to digital marketing, it is often seen that they confuse the terms of marketing. ...