Skip to content

Commit

Permalink
Merge pull request Expensify#38143 from Expensify/dsilva_addingLogsFo…
Browse files Browse the repository at this point in the history
…rReconnectApp

Adding log to identify what is triggering ReconnectApp
  • Loading branch information
danieldoglas authored Mar 12, 2024
2 parents eb6213f + d5b1690 commit a9422d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/Navigation/AppNavigator/AuthScreens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -126,6 +127,7 @@ function handleNetworkReconnect() {
if (isLoadingApp) {
App.openApp();
} else {
Log.info('[handleNetworkReconnect] Sending ReconnectApp');
App.reconnectApp(lastUpdateIDAppliedToClient);
}
}
Expand Down Expand Up @@ -189,6 +191,7 @@ function AuthScreens({session, lastOpenedPublicRoomID, initialLastUpdateIDApplie
if (SessionUtils.didUserLogInDuringSession()) {
App.openApp();
} else {
Log.info('[AuthScreens] Sending ReconnectApp');
App.reconnectApp(initialLastUpdateIDAppliedToClient);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit a9422d7

Please sign in to comment.