Basically, the iOS simulator does not show the push notifications from the firebase. There is a workaround to test notifications on the iOS simulator by following some simple steps.
Steps:
assets/payload.json
{
"aps": {
"alert": {
"title": "Notification title",
"subtitle": "Notification subtitle",
"body": "Notification payload"
}
}
}
pubspec.yaml
flutter:
uses-material-design: true
assets:
- assets/
flutter pub get
commandxcrun simctl push booted packageName assets/payload.json
Yeah!! that’s it. after doing this, you should be able to receive the notifications on your iOS Simulator.
If you need expert developers for Native iOS development that are familiar with Agile project execution, please reach out to us at hello@auberginesolutions.com.
If you are an iOS Engineer and would like to work on similar cool stuff, please apply to our open positions at https://www.auberginesolutions.com/careers