title: Flutter IOS FCM push notification not coming into notification bar
body: <p>I am new to Flutter and IOS. I am configuring FCM push notifications for both Android and IOS.For android its working fine.I have done by referring this link <a href="https://medium.com/@jun.chenying/flutter-tutorial-part3-push-notification-with-firebase-cloud-messaging-fcm-2fbdd84d3a5e" rel="nofollow noreferrer">https://medium.com/@jun.chenying/flutter-tutorial-part3-push-notification-with-firebase-cloud-messaging-fcm-2fbdd84d3a5e</a>
   . For IOS, if the app is opened and if I send FCM from Firebase Console at the same time , Flutter on message is called (See the screenshot , logs are there) . But if I close the app , notification is not coming to notification bar but I am receiving in Android App,
  I don't know where is the problem , Problem with Apple Profiles or Flutter .</p>
  
  <p>IOS Build Settings and Signing &amp; Capabilities </p>
  
  <p><a href="https://i.stack.imgur.com/iqw9a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iqw9a.png" alt="IOS build Settings"></a></p>
  
  <p>Here is my code in flutter,</p>
  
  <pre><code>    class FirebaseNotifications {
         FirebaseMessaging _firebaseMessaging;
         SharedPreferences _sharedPreferences;
  
         void setUpFirebase() {
           _firebaseMessaging = FirebaseMessaging();
           initializeSharedPreferences();
           firebaseCloudMessaging_Listeners();
          }
  
          void initializeSharedPreferences() async {
          _sharedPreferences = await SharedPreferences.getInstance();
          }
  
          void firebaseCloudMessaging_Listeners() {
          if (Platform.isIOS) iOS_Permission();
          _firebaseMessaging.getToken().then((token) {
          _sharedPreferences.setString(Preferences.device_token, token);
           print('Token'+token);
           });
  
           _firebaseMessaging.configure(
            onMessage: (Map&lt;String, dynamic&gt; message) async {
            print('on message $message');
           },
            onResume: (Map&lt;String, dynamic&gt; message) async {
            print('on resume $message');
           },
           onLaunch: (Map&lt;String, dynamic&gt; message) async {
           print('on launch $message');
           },
         );
       }
  
       void iOS_Permission() {
       _firebaseMessaging.requestNotificationPermissions(
       IosNotificationSettings(sound: true, badge: true, alert: true));
       _firebaseMessaging.onIosSettingsRegistered
       .listen((IosNotificationSettings settings) {
       print("Settings registered: $settings");
      });
     }
    }
  </code></pre>