title: Flutter firebase push notification in ios
body: <p>I am trying to setup ios push notification using firebase and flutter. When I send a test notification from firebase console with my emulator's device token, it comes to vs code editor's console since I have a print in <code>onMessage</code>. When I send the app in testflight, I get an email from apple that</p>
  <pre><code>ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the 'aps-environment' entitlement. If your app uses the Apple Push Notification service,.....
  </code></pre>
  <p>But I did setup push notification, I am confused, if it was not done correctly then how I was able to see the notification in emulator?</p>
  <p>I have also enabled push notification in <code>signing and capabilities</code>
  <a href="https://i.stack.imgur.com/bzP0G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bzP0G.png" alt="enter image description here" /></a></p>
  <p>I connected my iphone and run the project in device, I didn't see any notification pop up, but I got it like this</p>
  <p><a href="https://i.stack.imgur.com/sQvvx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sQvvx.png" alt="enter image description here" /></a></p>
  <p>Anyone can help me where did I do wrong?</p>
  <p>Thank you.</p>