title: Flutter FCM Push Notification not recieving on iOS
body: <p>I just follow the flutterfire guide, with android working correctly but not for iOS app..
  if i send push notification from firebase console i will receive notification but using Payload it will not receive notification.</p>
  <pre><code>exports.likeFunction = functions.firestore.document(&quot;Likes/{UserLikeId}/userLikes/{meId}&quot;).onCreate(async (snapshot, context) =&gt; {
      if (!snapshot.exists) {
          console.log('No Device');
      }
      //1. get the user that like id
      const meId = context.params.meId;
      //2. get the id the of the person u are liking
      const UserLikeId = context.params.UserLikeId;
      //3. we get all the document of user that like
      const me = await admin.firestore().collection('users').doc(meId).get();
      //4. we get all the document of the person we are liking 
      const deviceToken = await admin.firestore().collection('users').doc(UserLikeId).get();
      //5. the user that like name
      const name = me.data()['name'];
      console.log(deviceToken.id);
      //6. push notification to the person we are liking
      let payload = {
          notification: {
              title: 'likes',
              body: `${name} Likes You`,
  
          },
          data: {
              key: 'likes',
              click_action: &quot;FLUTTER_NOTIFICATION_CLICK&quot;,
  
          },
          android: {
              priority: &quot;high&quot;,
              notification: {
                  channel_id: &quot;faithmeetslove&quot;
              }
          },
          apns: {
              payload: {
                  aps: {
                      contentAvailable: true,
                  },
              },
              headers: {
                  &quot;apns-push-type&quot;: &quot;background&quot;,
                  &quot;apns-priority&quot;: &quot;5&quot;, // Must be `5` when `contentAvailable` is set to true.
                  &quot;apns-topic&quot;: &quot;io.flutter.plugins.firebase.messaging&quot;, // bundle identifier
              },
          },
  
          token: deviceToken.data()['tokens'],
      };
  </code></pre>
  <p>i have try send using that payload is not getting notification in iOS.
  in info.plist i set my <code>&lt;key&gt;FirebaseAppDelegateProxyEnabled&lt;/key&gt;</code>to NO.</p>
  <p>here is my AppDelegate.swift</p>
  <pre><code>import UIKit
  import Flutter
  
  import Firebase
  import FirebaseAuth
  import UserNotifications
  import FirebaseMessaging
  
  
  @UIApplicationMain
  @objc class AppDelegate: FlutterAppDelegate {
    override func application(
      _ application: UIApplication,
      didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
    ) -&gt; Bool {
      GeneratedPluginRegistrant.register(with: self)
      application.registerForRemoteNotifications()
      return super.application(application, didFinishLaunchingWithOptions: launchOptions)
    }
      override func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
      
      Messaging.messaging().apnsToken = deviceToken //*THIS WAS MISSING*
      super.application(application, didRegisterForRemoteNotificationsWithDeviceToken: deviceToken) //Not sure if calling super is required, but did anyway
    }
    //  override func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
    //       let firebaseAuth = Auth.auth()
    //       firebaseAuth.setAPNSToken(deviceToken, type: AuthAPNSTokenType.unknown)
    //   }
       override func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -&gt; Swift.Void) {
      Messaging.messaging().appDidReceiveMessage(userInfo)
      ///Not sure if calling super is required here
      super.application(application, didReceiveRemoteNotification: userInfo, fetchCompletionHandler: completionHandler)
    }
      // override func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -&gt; Void) {
      //     let firebaseAuth = Auth.auth()
      //     if (firebaseAuth.canHandleNotification(userInfo)){
      //         print(userInfo)
      //         return
      //     }
      
      //  }
      override func application(_ application: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any]) -&gt; Bool {
          if Auth.auth().canHandle(url) {
            return true
          }
          return false;
        }
     
   
  }
  </code></pre>