AhWagih
AhWagih

Reputation: 505

Flutter FCM IOS silent(data only) notification not received

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.

Upvotes: 2

Views: 2467

Answers (1)

AhWagih
AhWagih

Reputation: 505

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

enter image description here

Upvotes: 12

Related Questions