Flutter FCM IOS silent(data only) notification not received

1,021

I was able to solve this problem using this json parameters.

enter image description here

Share:
1,021
AhWagih
Author by

AhWagih

Updated on December 28, 2022

Comments

  • AhWagih
    AhWagih over 1 year

    I'm using data notifications to update my app state, it's working perfectly on Android but I can't receive any data messages on IOS the onMessage listener is not even triggered.

    I'm using these:

    firebase_core: ^0.7.0

    firebase_auth: ^0.20.1

    firebase_messaging: ^8.0.0-dev.15

    firebase_analytics: ^7.0.0

    I'm using POSTMAN to test it and it works on Android with no problems but data only messages to IOS are just not received.

    Notifications with notification field are working perfectly on foreground, background & terminated the problem is only with data only messages.

    Any help is appreciated.

    enter image description here

    Any help is appreciated.