Skip to content

Fix login flow and download progress bar#7

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

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

Conversation

@BatuhanK

@BatuhanK BatuhanK commented Mar 10, 2026

Copy link
Copy Markdown

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

@michalsrutek michalsrutek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign in with 2FA works fine for me ✅

@bahattinkoc

Copy link
Copy Markdown
Owner

#6 (comment)

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.

3 participants