Gracefully handle backend failures in Expo app

This commit is contained in:
Adolfo Reyna
2026-02-20 19:25:38 -05:00
parent fe9fc8e3e4
commit 009f1ec792
14 changed files with 205 additions and 97 deletions

1
App.js
View File

@@ -102,6 +102,7 @@ const MainNavigation = ({ route }) => {
registerForPushNotificationsAsync().then(async (token) => {
let isLoggedIn = await API.isLoggedIn();
if (!isLoggedIn) return false;
if (!token) return false;
API.registerToken(token);
return setExpoPushToken(token);
});