MetaMask / MetaMask/metamask-mobile

Browser not recognizing localStorage on iOS

Open
#3,675 2 comments 1 reaction 0 assignees View on GitHub
community
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

### **Description**

Our Dapp sets localStorage value for authentication check, but seems like metamask mobile app on iOS does not keep localStorage value. Confirmed it's working on Android. Is this a known case?

### **Technical Details**
We set value via `localStorage.setItem('walletId', walletId)`
but cannot read the value with `const wallet = localStorage.getItem("walletId");`

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the localStorage behavior in the MetaMask mobile iOS app using the reported walletId setItem and getItem calls, then compare it with Android. Done means determining whether iOS persistence is a known platform issue and documenting or addressing the cause.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.