Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: Anza XYZ Wallet Adapter Demo Not Working on Mobile Devices #1048

Open
ntsolakos opened this issue Feb 4, 2025 · 1 comment
Open

Comments

@ntsolakos
Copy link

Describe the Bug
The demo available at [Anza XYZ Wallet Adapter Example](https://anza-xyz.github.io/wallet-adapter/example/) only functions correctly on desktop devices, but fails to work on mobile devices (iOS & Android).

To Reproduce
Steps to reproduce the issue on a mobile device:

  1. Open [Anza XYZ Wallet Adapter Demo](https://anza-xyz.github.io/wallet-adapter/example/) on a mobile browser (Safari, Chrome, Opera, etc.).
  2. Click on the "Connect Wallet" button and there are no wallet options (e.g., Phantom, Solflare).

Expected Behavior

  • The wallet connection process should work seamlessly on mobile the same way it does on desktop.
  • If the user has a wallet app installed (e.g., Phantom, Solflare), the demo should correctly invoke the wallet and establish a connection instead of failing or redirecting improperly.

Device Information

Desktop (Works fine):

  • OS: [e.g. Windows 11 / macOS Big Sur]
  • Browser: [e.g. Chrome 120, Firefox, Edge]
  • Version: [e.g. Latest]

Mobile (Issue present):

  • Device: [e.g. iPhone 12, Redmi 9]
  • OS: [e.g. iOS 17.2, Android 12.5]
  • Browser: [e.g. Safari, Chrome, Opera]
  • Version: [e.g. Latest]

Additional Context

  • The issue is specific to mobile devices—on desktops, everything works as expected.
  • The bug affects wallet connection functionality, making it impossible to use the demo properly on mobile browsers.
  • No workaround available as of now, making mobile users unable to test the wallet adapter.

Please investigate this issue and let us know if there is a fix or an alternative approach for mobile compatibility. Thanks! 🚀

@Funkatronics
Copy link
Contributor

Hey @ntsolakos, Solana Mobile dev here 🫡

I am not sure if your issue here is a misunderstanding of how wallets connect on Mobile, or some other bug that we are not aware of.

To help clarify, I've recorded a video of the Android experience using Chrome:

20250206-2245-37.1900442.mp4

I am using our testing wallet here, but the experience is identical as long as you have Phantom or Solflare installed on the phone. If you have multiple wallets installed, the Android system will present a dialog asking you to pick which wallet app you'd like to use for the connection.

iOS is a bit of a different story. iOS has a fundamentally different architecture that prevents a locally installed wallet app like Phantom or Solflare from connecting to a dapp running in Safari using MWA. As a result, the local MWA adapter is not enabled on iOS devices. In order to connect to a wallet app on iOS, the dapp itself would need to either a) add a specific adapter for these wallets (Phantom, Solflare, etc.) to its list of adapters - which the demo app does not do. Or b) use an iOS wallet with an iOS Safari browser extension like Glow.

Hope this helps! if you are still having issues with Android, posting a video of what you are seeing would be helpful.

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

No branches or pull requests

3 participants
@Funkatronics @ntsolakos and others