This demonstrates how you can use the mobile wallet adapter in a web app.
Solana.Mobile.Example.Web.App.mp4
- Authorize the web app for use with a native mobile wallet app.
- Record a message of your choosing on-chain, using the Memo program.
- Sign a message of your choosing.
- Request an airdrop of SOL on devnet.
To make it convenient to load the example app on your mobile phone we suggest creating a reverse proxy to your local machine on which the example app's websever is running. We suggest using ngrok, which you can set up by following these instructions.
- Build and host the app with
yarn && yarn build && yarn start
. - Once the app is listening for connections on
localhost
open a remote tunnel to it in a separate terminal, usingyarn tunnel:start
- Load the
https
tunnel URL on the Android mobile device that has a native wallet app installed.