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

Mobile Support #82

Open
davidchavezgrant opened this issue May 5, 2023 · 1 comment
Open

Mobile Support #82

davidchavezgrant opened this issue May 5, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@davidchavezgrant
Copy link

I've recently been experimenting with this on mobile platforms. Namely, MAUI and Avalonia on iOS. I've successfully been able to send a wallet connection request to a wallet, but very often, the connection will fail or the target wallet won't redirect back to my application. Trust Wallet also gives me an error like WalletConnect Session was disconnected. Go back to your browser and try WalletConnect again

For reference, I've written something like this in an AvaloniaUI app, and did something similar for MAUI:

    private async Task<SessionStruct?> OpenWallet(ConnectedData connection, bool useRainbow)
    {
        string schema = "https://";

        if (useRainbow)
        {
            schema += "rnbwapp.com";
        }
        else
        {
            schema += "link.trustwallet.com";
        }

        var urlString = schema + "/wc?uri=" + connection.Uri;
        var nsUrl     = new NSUrl(urlString);
        await UIApplication.SharedApplication.OpenUrlAsync(nsUrl, new UIApplicationOpenUrlOptions());
        return await connection.Approval;
    }

Interestingly, using the web3modal javascript package within a Blazor Web View does work as expected (most of the time).
I'm trying to work toward a solution that doesn't rely on a webview, though.

Has anyone else done work on this or have any ideas?

@gigajuwels gigajuwels added the enhancement New feature or request label Sep 26, 2023
@gigajuwels gigajuwels self-assigned this Sep 26, 2023
@gigajuwels
Copy link
Contributor

this is related to deep linking to a wallet which this library doesn't currently support, but we plan on adding support (unity already has this)

@skibitsky skibitsky assigned skibitsky and unassigned gigajuwels Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants