> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solanamobile.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrate to Wallet Standard

> On the web, Mobile Wallet Adapter (MWA) is available as a *standard wallet* with the package:

* [`@solana-mobile/wallet-standard-mobile`](https://github.com/solana-mobile/mobile-wallet-adapter/tree/main/js/packages/wallet-standard-mobile)

This is the recommended library for MWA on web and this guide explains why and how to migrate your web app.

## How to upgrade

### 1. Install Mobile Wallet Standard

Installing the standard wallet takes two steps:

**Step 1**

Add the library `@solana-mobile/wallet-standard-mobile`.

```bash theme={null}
npm install @solana-mobile/wallet-standard-mobile
```

**Step 2**

Call the `registerMwa` function.

> [!WARNING]
>
> **CAUTION**
>
> Ensure `registerMwa` is invoked in a non-SSR context. if you're using a framework with Server Side Rendering (e.g Next.js),

```ts expandable theme={null}
// 'use client' - If using Next.js, ensure it is registered in a non-SSR context.

import { registerMwa } from '@solana-mobile/wallet-standard-mobile'

registerMwa({
  appIdentity: {
    name: 'My app',
    uri: 'https://myapp.io',
    icon: 'relative/path/to/icon.png', // resolves to https://myapp.io/relative/path/to/icon.png
  },
  chains: ['solana:devnet', 'solana:mainnet'],
})
```

Now, `Mobile Wallet Adapter` will appear as a wallet option.

For more context, view the **full [installation guide](https://docs.solanamobile.com/get-started/web/installation.md).**

### 2. Update to wallet-adapter >= 0.15.36

If your web app is using `@solana/wallet-adapter-react` update to a version `>= 0.15.36`.
Updating fixes common MWA Web issues like:

* the [*No connect after selecting MWA*](https://github.com/solana-mobile/mobile-wallet-adapter/issues/1086) bug.

## Why switch?

There are several reasons to upgrade to using MWA via Wallet Standard.

### Wallet Adapter no longer includes MWA as a default

The `@solana/wallet-adapter-react` library will [not include MWA as a default option](https://github.com/anza-xyz/wallet-adapter/pull/1097) starting from versions `>= 1.0.0`.

This means any web app using `@solana/wallet-adapter-react` will no longer display `Mobile Wallet Adapter` as an option for users
browsing on Android Chrome, unless explicitly added.

### Bug fixes and stability

The `@solana-mobile/wallet-standard-mobile` is the recommended web library for MWA going forward. This means it will receive all the latest feature additions and updates.

The legacy `@solana-mobile/wallet-adapter-mobile` library will be deprecated and enter maintenance mode, and only receive updates for bug fixes.

Code samples on this page are subject to the
[Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0)
.
