MetaMask / MetaMask/metamask-sdk

[Telegram Webview]: Mobile metamask app doesn't open when connect in telegram mini app

Open
#1,103 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
338
Forks
260
PR merge metrics
No merged PRs in 30d

Description

### SDK

Web

### Provide environment information

Telegram Mini App (Webview)

### MetaMask SDK Version

Latest

### MetaMask Mobile app Version

Latest

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

Telegram IOS latest

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

_No response_

### Describe the Bug

The mobile metamask app doesn't trigger open when connecting via code: `sdk.connect()` in telegram mini app. It hasn't return any responses or errors. However when I open in mobile browser (IOS safari). It's works.

### Expected Behavior

The metamask app open to connect wallet.

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

_No response_

### To Reproduce

Provider:
```

sdkOptions={{
dappMetadata: {...},
infuraAPIKey: "...",
}}
>...
```
Connect:

```
try {
const accounts = await sdk?.connect();
console.log(accounts);
} catch (err) {
console.error("failed to connect..", err);
} finally {
console.log("Finished");
}
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or reproduction link is named. Start by reproducing sdk.connect() in a Telegram iOS WebView and compare it with iOS Safari, checking whether the call produces a response or error. Done means the MetaMask mobile app opens for the Telegram flow or the SDK reports a clear failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
mobile-dev, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.