From 3ee48cbc1e029c574e9487f9e5f51ff4ddc8f0fc Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Mon, 12 Jul 2021 11:48:03 +0200 Subject: [PATCH] Update docusaurus/docs/Flutter/guides/adding_push_notifcations.mdx Co-authored-by: Deven Joshi --- docusaurus/docs/Flutter/guides/adding_push_notifcations.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docusaurus/docs/Flutter/guides/adding_push_notifcations.mdx b/docusaurus/docs/Flutter/guides/adding_push_notifcations.mdx index af82d4f5..c2164ebc 100644 --- a/docusaurus/docs/Flutter/guides/adding_push_notifcations.mdx +++ b/docusaurus/docs/Flutter/guides/adding_push_notifcations.mdx @@ -93,7 +93,7 @@ firebaseMessaging.onTokenRefresh.listen((token) { ### Possible issues -We only send push notifications, when the user doesn't have any active websocket connection (which is established when you call client.connectUser). If you set the [onBackgroundEventReceived](https://pub.dev/documentation/stream_chat_flutter/latest/stream_chat_flutter/StreamChat/onBackgroundEventReceived.html) property of the StreamChat widget, when your app goes to background, your device will keep the ws connection alive for 1 minute, and so within this period, you won't receive any push notification. +We only send push notifications when the user doesn't have any active websocket connection (which is established when you call `client.connectUser`). If you set the [onBackgroundEventReceived](https://pub.dev/documentation/stream_chat_flutter/latest/stream_chat_flutter/StreamChat/onBackgroundEventReceived.html) property of the StreamChat widget, when your app goes to background, your device will keep the ws connection alive for 1 minute, and so within this period, you won't receive any push notification. Make sure to read the [general push docs](https://getstream.io/chat/docs/flutter-dart/push_introduction/?language=dart) in order to avoid known gotchas that may make your relationship with notifications go bad 😢 @@ -232,4 +232,3 @@ Future myBackgroundMessageHandler(message) async { } } ``` -