File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/firebase_messaging/firebase_messaging/lib/src Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,11 @@ class FirebaseMessaging extends FirebasePluginPlatform {
245245 ///
246246 /// If all arguments are `false` or are omitted, a notification will not be displayed in the
247247 /// foreground, however you will still receive events relating to the notification.
248+ ///
249+ /// Important: Options set to `true` are persisted. If you
250+ /// later remove or comment out this call, those values remain in effect—they are not reset to
251+ /// `false` . To turn off foreground display after having set it to `true` , call this method
252+ /// explicitly with `alert: false` (and `badge` /`sound` as desired).
248253 Future <void > setForegroundNotificationPresentationOptions ({
249254 bool alert = false ,
250255 bool badge = false ,
You can’t perform that action at this time.
0 commit comments