MetaMask / MetaMask/metamask-sdk

[Bug]: Does not redirect back to my app

Open
#1,368 2 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

React-Native

### Provide environment information

We are developing a React Native application under the DEX module and are currently facing issues with the MetaMask SDK integration.

The connection between our mobile application and MetaMask works fine initially.

However, when performing a transaction, we encounter a session engagement issue during the token contract approval process. The MetaMask SDK remains in a loading state for over an hour without completing the transaction.

Additionally, when attempting multiple connection requests on Android, the SDK automatically returns a “user rejection” response, even though the user has not manually rejected the request.

Kindly look into these issues and suggest a possible solution or workaround.

### MetaMask SDK Version

7.56.4

### MetaMask Mobile app Version

34

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

_No response_

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

_No response_

### Describe the Bug

We are developing a React Native application under the DEX module and are currently facing issues with the MetaMask SDK integration.

The connection between our mobile application and MetaMask works fine initially.

However, when performing a transaction, we encounter a session engagement issue during the token contract approval process. The MetaMask SDK remains in a loading state for over an hour without completing the transaction.

Additionally, when attempting multiple connection requests on Android, the SDK automatically returns a “user rejection” response, even though the user has not manually rejected the request.

Kindly look into these issues and suggest a possible solution or workaround.

### Expected Behavior

After confirming the connection, it does not redirect back to my app. Is this the expected behavior,

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

_No response_

### To Reproduce

When I click the Connect button, it correctly redirects to the MetaMask app and shows the connection confirmation popup. However, after confirming the connection, it does not redirect back to my app

Contributor guide

Open the contributing guide

Research direction

Start with the React Native SDK connection flow triggered by the Connect button and reproduce on Android with SDK 7.56.4 and MetaMask Mobile 34. Compare behavior after confirming the connection and during token contract approval; done when the app returns from MetaMask and the transaction completes without a false user rejection.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
blockchain, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.