MetaMask / MetaMask/metamask-sdk
[Telegram Webview]: Mobile metamask app doesn't open when connect in telegram mini app
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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