Skip to content

Fix login flow and download progress bar#7

Open
BatuhanK wants to merge 4 commits intobahattinkoc:mainfrom
BatuhanK:fix-login-flow
Open

Fix login flow and download progress bar#7
BatuhanK wants to merge 4 commits intobahattinkoc:mainfrom
BatuhanK:fix-login-flow

Conversation

@BatuhanK
Copy link
Copy Markdown

@BatuhanK BatuhanK commented Mar 10, 2026

hello @bahattinkoc I fixed the login issues and it's working now. When I tried to download an IPA it wasn't show the progress so I tried to fix that as well.

- Add bag.xml initialization step
- Use auth.itunes.apple.com/auth/v1/native/fast endpoint
- Handle status -128 (store switch dialog) as success
- Extract passwordToken and dsPersonId from response
- Remove .purchasing state from DownloadState enum
- Start downloads directly with .downloading(0, 0, 0) instead of .purchasing
- Fix UI getting stuck on 'Purchasing...' message
- Replace session.download(from:) with session.bytes(for:)
- Manually write bytes to file and track progress
- Report progress every 64KB and on completion
- Fix progress stuck at 0% issue
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.

1 participant