MetaMask / MetaMask/metamask-sdk

[Bug]: Can not redirect from Metamask back to Android dApp

Open
#1,266 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
338
Forks
260
PR merge metrics
No merged PRs in 30d

Description

### SDK

Web

### Provide environment information

Bug

### MetaMask SDK Version

0.3.12

### MetaMask Mobile app Version

7.44.0

### What browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_

### Describe the Bug

When i sign message in MetaMask successfully, it turned off the modal sign message, and then it did not redirect to my dApp, and no modal shown that i need to go back to my dApp. Otherwise, in iOS when i signed message or connected in MetaMask, it definitely redirected to my dApp. I also check the MetaMaskReactNativeModule of both operation Android & iOS and i saw that in iOS you guys have the handleDeepLink but not in Android.

### Expected Behavior

Bug

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

_No response_

### To Reproduce

Bug

Contributor guide

Open the contributing guide

Research direction

Start by reading the MetaMaskReactNativeModule implementation and comparing Android with the iOS handleDeepLink path mentioned in the report. Reproduce the sign-message flow on Android if possible; done means returning to the dApp after signing and showing the expected return prompt or modal.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.