rainbowkit icon indicating copy to clipboard operation
rainbowkit copied to clipboard

[bug][iOS] Connecting Trust Wallet opens Trust Bank SG app instead

Open sarevok89 opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

RainbowKit Version

2.1.4

wagmi Version

2.12.4

Current Behavior

Hi guys, I've just noticed that having installed both the Trust Wallet and Trust Bank SG apps on my iPhone and trying to connect to the Trust Wallet wallet using the 'connect' button opens the Singaporean bank app instead. On Android, I can select one of these 2 apps but on iOS, I cannot.

Can we anyhow help the Rainbowkit select the correct app?

Expected Behavior

It should open the Trust Wallet app

Steps To Reproduce

  1. Install on your iPhone both the Trust Wallet and Trust Bank SG apps
  2. Go to https://www.rainbowkit.com/docs/introduction, in the top-right corner press the 'connect' button, and select the Trust Wallet
  3. See that the incorrect app is launched

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

https://www.rainbowkit.com/docs/introduction

Anything else?

https://github.com/user-attachments/assets/84772db8-bb34-4a2f-95b2-c327644c2e3d

sarevok89 avatar Aug 08 '24 10:08 sarevok89

@sarevok89 This is unfortunately a rare edge case related to how iOS deep link schemas work. The trust:// scheme is not inherently reserved for Trust Wallet, and other apps can register the same deep link. iOS attempts to route around this based on which apps the user interacts with more frequently. In this case, it makes sense that you're seeing a clash when regularly interacting with both apps. Will keep this open as we investigate a workaround with a Universal Link for Trust Wallet

DanielSinclair avatar Aug 12 '24 06:08 DanielSinclair