Skip to content

fix(example): restore custom URL on app startup#19

Open
healthkowshik wants to merge 1 commit intothe-momentum:mainfrom
healthkowshik:fix/example-restore-custom-url
Open

fix(example): restore custom URL on app startup#19
healthkowshik wants to merge 1 commit intothe-momentum:mainfrom
healthkowshik:fix/example-restore-custom-url

Conversation

@healthkowshik
Copy link

Summary

Restore custom API URL to the text field when the app restarts, matching the existing behavior for User ID and SDK Token.

Changes

  • Added restoration of customSyncUrl from stored credentials to _customUrlController in _autoConfigureOnStartup()

Why

The custom URL was being stored in native Keychain and used internally by the SDK, but the UI text field was not updated on app restart. This caused confusion as users would see the default URL while their actual custom URL was being used behind the scenes.

Fixes: #18

Test Plan

  • Enter a custom API URL and sign in
  • Close and reopen the app
  • Verify the custom URL is restored in the text field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom API URL not restored in UI on app restart

1 participant

Comments