This solved by changing the Info.plist
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>remote-notification</string>
</array>
But my push notifications still not working, the code abode isn't called
NotificationSettings settings = await messaging.requestPermission(
alert: true,
announcement: false,
badge: true,
carPlay: false,
criticalAlert: false,
provisional: false,
sound: true,
);
Anything else i havo to do? Maybe another key i have to add in the Info.plist?
Topic:
App & System Services
SubTopic:
Notifications
Tags: