Confirming iOS FCM Background Limitation & Backend-First Notification Handling #17989
Unanswered
usama-sherazi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On iOS, Flutter/Dart code does not run when the app is in background or terminated. Notifications are shown by APNs, but no background callback is triggered.
Because of this, saving notification data in the app is not reliable on iOS.
The approach is to save all notification details (title, image, payload, etc.) on the backend before or when sending the FCM notification, and then fetch and display this data from the backend when the app is opened or when the user taps the notification.
Please confirm if this backend-first approach is the recommended and correct solution for iOS.
Beta Was this translation helpful? Give feedback.
All reactions