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]: interrupting downloading Metamask in AppStore #1187

Open
dmytroserdiuk16 opened this issue Jan 8, 2025 · 9 comments
Open

[Bug]: interrupting downloading Metamask in AppStore #1187

dmytroserdiuk16 opened this issue Jan 8, 2025 · 9 comments

Comments

@dmytroserdiuk16
Copy link

SDK

Web

Provide environment information

i have problem on iphone so when user click button connect metamask and does not have the app on his phone it redirects him to appstore to download the app. But the problem is that user can simply close appstore, and for some reason he cannot click button connect metamsk anymore. Can u help me? Here is the code:

`const { connected, account, sdk } = useSDK();

<Button radius={2} onClick={async () => {
try {
if (sdk) {
await sdk.resume();

await sdk.connect();
}
} catch (error) {
await sdk?.resume();
}
}}>Connect Metamask`

MetaMask SDK Version

0.29.2

MetaMask Mobile app Version

0.29.2

What browser are you using? (if relevant)

safari

How are you deploying your application? (if relevant)

No response

Describe the Bug

help please

Expected Behavior

when user close appstore and return to button it stil be clickable

Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

No response

To Reproduce

help

@dmytroserdiuk16
Copy link
Author

can someone answer?

@dmytroserdiuk16
Copy link
Author

dmytroserdiuk16 commented Jan 8, 2025

i use:
@metamask/sdk-react-ui: "^0.29.2
iphone 11
Recording screen can not provide but here are the steps:

Imagine we have website or Telegram bot where user can connect his metamask wallet
When user click connect button (code i provided u above) and user dont have metamask app - it redirects him to AppStore
User close AppStore himself, even have not started to download Metamask app
User return to website or bot and want to click button Connect one more time - but it is not clickable
Expected result: when user click button it still must redirect him to appstore for the second time

@dmytroserdiuk16
Copy link
Author

@Skippyy96 hello!
Do you have any updates how to solve this issue?

@dmytroserdiuk16
Copy link
Author

@Skippyy96 hello!
Do you have any updates how to solve this issue?

1 similar comment
@dmytroserdiuk16
Copy link
Author

@Skippyy96 hello!
Do you have any updates how to solve this issue?

@dmytroserdiuk16
Copy link
Author

@Tech-fixxDev

Hello, I described there in chat my problem but instead of solving it support manager just asks to connect my wallet on his site.
Could you please help to solve my problem?

@dmytroserdiuk16
Copy link
Author

@Tech-fixxDev
but reason is not in my wallet at all, reason is that when user dont have metamask app - click button connect metamask and it redirects him to appstore, but he can easily just close appstore without app being installed and if he retruns to my site and clicks button - it will not be clickable and it will not redirect him to appstore as it should to do

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
@dmytroserdiuk16 and others