magicblock-labs / magicblock-labs/Solana.Unity-SDK

[Bug] Wallet is not getting connect in iOS, deep-link has no fragment in IOS

Open
#231 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
199
Forks
128
PR merge metrics
No merged PRs in 30d

Description

**Bug Description**
The wallet is not getting connected to iOS device

Error: ArgumentOutOfRangeException: Index and count must refer to a location within the string
Web3.setResultUrl( System.Uri uri)

Deeplink response from phantom wallet: unitydl://onPhantomConnected?phantom_encryption_public_key=xxx&nonce=xxx&data=xxxx

**Smartphone:**
- Device: [iPhone13 Pro Max]
- OS: [iOS 18]
- Application [Phantom App]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at Web3.setResultUrl(System.Uri uri), where the reported ArgumentOutOfRangeException occurs, and inspect how the Phantom iOS deep-link URL is parsed. Done means the supplied iOS deep link no longer throws and the wallet connection completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, ios, unity
Domain
blockchain, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.