I've got firebase_messaging 9.1.0 receiving and showing both my Android and iOS apps notifications when the app is in the foreground, in the background, and closed. However on iOS the background handler future doesn't appear to be executing. I'm running the firebase_messaging_example app it doesn't print 'Handling a background message ${message.messageId}' when running in the background.
Background fetch and remote notifications are checked in xcode.
I've tried:
Sending notifications with and without clickAction: "FLUTER_NOTIFICATION_CLICK"
With and without
<key>FirebaseAppDelegateProxyEnabled</key> <false/>
in info.plist
With and without background processing checked in xcode.
I'd like the background handler to execute some code that sets a badge on the app launcher icon. Does anyone know how to get the handler to work with iOS or another way to set a badge on the launcher icon when the app is closed?