Repository navigation
Sign out when the account is gone, wait for an edit before validation messages, and drop stale offline messages - #96
Merged
Conversation
…ted session The API looks up the organization in the path before the token. A free account has only its personal organization, which goes with the account (deleted by the user, or by the public demo after 30 unused days), so a saved session for it gets account_not_found, never devise_token_auth's 401, and every screen kept failing. The error body's error_code is now read (ApiException.ApiError.apiErrorCode), and the permissions fetch signs out on account_not_found as on a 401. Found on 2026-10-28 with the paid app (same fix in NativeAppTemplate-Android, NativeAppTemplate-iOS, NativeAppTemplate-Free-iOS). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New forms (sign-in, sign-up, forgot password, resend confirmation, shop, item tag, password) opened with "... is required." in red before anything was typed. rememberIsEdited(value) is iOS's untilEdited(_:): the error waits until the field's text first changes; the submit button stays disabled meanwhile. Found on 2026-10-28 on a device with the paid app (same change in NativeAppTemplate-Android). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…it stale once back online Found on a device: a shop opened offline failed, its [NATIVEAPPTEMPLATE-2002] queued behind the offline snackbar, which is indefinite, and came up once the connection was back and that snackbar closed. The offline snackbar already says why, so showScreenMessage drops screen messages while offline. Same fix in NativeAppTemplate-Android. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found while checking the release on a Pixel 6 against the public demo (debug and R8 release builds). Same fixes as NativeAppTemplate-Android (except the notification reason: the free edition has no push).
account_not_found(404), not 401, and the free edition did not handle it.NativeAppTemplateApiErrorreadserror_code,ApiException.isAccountGoneis new, andSessionLifecycle.fetchPermissionslogs out on it like a rejected token. Same as NativeAppTemplate-Free-iOS #121.rememberIsEdited(value)gates each message on 7 screens, like iOS.[NATIVEAPPTEMPLATE-2002]queued behind the indefinite offline snackbar, and it came up once the connection was back.showScreenMessagedrops screen messages while offline; the offline snackbar already says why.Test plan
./scripts/pre-push(spotless, lint, R8, unit tests) passed (with Android Studio's JBR; GitHub Actions does not start for billing reasons)MainActivityViewModelTest/ApiResponseExtensionsTest(account gone),IsEditedTestand the form tests,ShowScreenMessageTest🤖 Generated with Claude Code