diff --git a/src/libs/Navigation/AppNavigator/AuthScreens.tsx b/src/libs/Navigation/AppNavigator/AuthScreens.tsx index a986e2995156..585713243d3f 100644 --- a/src/libs/Navigation/AppNavigator/AuthScreens.tsx +++ b/src/libs/Navigation/AppNavigator/AuthScreens.tsx @@ -6,6 +6,7 @@ import useStyleUtils from '@hooks/useStyleUtils'; import useThemeStyles from '@hooks/useThemeStyles'; import useWindowDimensions from '@hooks/useWindowDimensions'; import KeyboardShortcut from '@libs/KeyboardShortcut'; +import Log from '@libs/Log'; import getCurrentUrl from '@libs/Navigation/currentUrl'; import Navigation from '@libs/Navigation/Navigation'; import type {AuthScreensParamList} from '@libs/Navigation/types'; @@ -126,6 +127,7 @@ function handleNetworkReconnect() { if (isLoadingApp) { App.openApp(); } else { + Log.info('[handleNetworkReconnect] Sending ReconnectApp'); App.reconnectApp(lastUpdateIDAppliedToClient); } } @@ -189,6 +191,7 @@ function AuthScreens({session, lastOpenedPublicRoomID, initialLastUpdateIDApplie if (SessionUtils.didUserLogInDuringSession()) { App.openApp(); } else { + Log.info('[AuthScreens] Sending ReconnectApp'); App.reconnectApp(initialLastUpdateIDAppliedToClient); } diff --git a/src/libs/Notification/PushNotification/backgroundRefresh/index.android.ts b/src/libs/Notification/PushNotification/backgroundRefresh/index.android.ts index ff63f5aefa2b..15c26b8648fe 100644 --- a/src/libs/Notification/PushNotification/backgroundRefresh/index.android.ts +++ b/src/libs/Notification/PushNotification/backgroundRefresh/index.android.ts @@ -39,6 +39,7 @@ const backgroundRefresh: BackgroundRefresh = () => { * See more here: https://reactnative.dev/docs/headless-js-android */ App.confirmReadyToOpenApp(); + Log.info('[PushNotification] Sending ReconnectApp'); App.reconnectApp(lastUpdateIDAppliedToClient ?? undefined); }) .catch((error) => {