I have a Flutter app that sends Firebase notifications to all the users at some moment. It is working fine at android but in iOS only works with the app open. If I close the app (or go to main screen for example), it did not receive anything.
I already setted 'priority' : 'high', "content_available" : true and still not working. What can I do to perform it?
If you need some code/info I update the question.
UPDATE: Yes, i'm using onResume
_firebaseMessaging.configure(
onMessage: (Map<String, dynamic> message) async {
print("onMessage: ${message}");
print(message['notification']['body']);
},
onLaunch: (Map<String, dynamic> message) async {
print("onMessage: ${message}");
},
onResume: (Map<String, dynamic> message) async {
print("onMessage: ${message}");
},
);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…