Skip to main content
Question

IOS Push notifications - app closed

  • December 19, 2025
  • 1 reply
  • 13 views

Forum|alt.badge.img

It seems push notification payload isn’t sending the Content-Available: true flag that is needed for app background message processing to be triggered. Can we somehow get around this limitation? 

 

@pragma('vm:entry-point')Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {  debugPrint('========================================');    debugPrint('BACKGROUND MESSAGE RECEIVED');    debugPrint('Message ID: ${message.messageId}');    debugPrint('========================================');

}

 

This vm entry point now isn’t getting reached but I notice when sending notifications through cloudkit and setting content-available: true it is getting triggered. 

 

I also found that silent notifications from klaviyo are setting this flag, so the functionality is there.

1 reply

Forum|alt.badge.img
  • Author
  • Contributor I
  • December 19, 2025

I have by the way also noticed the same issue for opening apps from closed state, initialMessage is not being set.