title: flutter: fcm ios push notifications doesn't work in release mode
body: <p>I have bound my flutter-iOS app to firebase and i'm also using firebase-messaging and cloud functions for sending notifications via subscribing to topics, i'm using the APNs push notifications key of apple developer account. when i use the option runner&gt;flutter run main.dart in release mode to build my app on my phone, fcm notifications doesn't work anymore, while it works in development mode, anyone can help me fix this?</p>
  <p>this is my index.json code:</p>
  <pre><code>const functions = require('firebase-functions');
  const admin = require('firebase-admin');
  
  admin.initializeApp(functions.config().firebase);
   
  var newData;
   
  exports.messageTrigger = functions.firestore.document('notifications/{notificationsId}').onCreate(async (snapshot, context) =&gt; {
  newData = snapshot.data();
  const payload = {
      notification: {
          title: newData.title,
          body: newData.body,
          sound: 'default'
      },
      
          data: {
        click_action: 'FLUTTER_NOTIFICATION_CLICK',
        message: newData.title,
      }
  
  };
  
  if (newData.language === 'english'){
      await admin.messaging().sendToTopic('english', payload);
  }
  else if (newData.language === 'arabic'){
      await admin.messaging().sendToTopic('arabic', payload);
  }
  else if (newData.language === 'kurdish'){
      await admin.messaging().sendToTopic('kurdish', payload);
  }
  });
  </code></pre>
  <p>hence package.json:</p>
  <pre><code>{
    &quot;name&quot;: &quot;functions&quot;,
    &quot;description&quot;: &quot;Cloud Functions for Firebase&quot;,
    &quot;scripts&quot;: {
      &quot;lint&quot;: &quot;eslint .&quot;,
      &quot;serve&quot;: &quot;firebase emulators:start --only functions&quot;,
      &quot;shell&quot;: &quot;firebase functions:shell&quot;,
      &quot;start&quot;: &quot;npm run shell&quot;,
      &quot;deploy&quot;: &quot;firebase deploy --only functions&quot;,
      &quot;logs&quot;: &quot;firebase functions:log&quot;
    },
    &quot;engines&quot;: {
      &quot;node&quot;: &quot;10&quot;
    },
    &quot;dependencies&quot;: {
      &quot;firebase-admin&quot;: &quot;^8.10.0&quot;,
      &quot;firebase-functions&quot;: &quot;^3.6.1&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;eslint&quot;: &quot;^5.12.0&quot;,
      &quot;eslint-plugin-promise&quot;: &quot;^4.0.1&quot;,
      &quot;firebase-functions-test&quot;: &quot;^0.2.0&quot;
    },
    &quot;private&quot;: true
  }
  </code></pre>