@solana-mobile/wallet-adapter-mobile 2.2.6 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/lib/cjs/index.browser.js +321 -394
- package/lib/cjs/index.browser.js.map +1 -0
- package/lib/cjs/index.js +321 -394
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/index.native.js +361 -415
- package/lib/cjs/index.native.js.map +1 -0
- package/lib/cjs/package.json +1 -3
- package/lib/esm/index.browser.js +318 -390
- package/lib/esm/index.browser.js.map +1 -0
- package/lib/esm/index.js +318 -390
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/package.json +1 -3
- package/lib/types/index.d.ts +66 -59
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +12 -11
- package/lib/types/index.browser.d.ts +0 -79
- package/lib/types/index.browser.d.ts.map +0 -1
- package/lib/types/index.native.d.ts +0 -79
- package/lib/types/index.native.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This is a plugin for use with [`@solana/wallet-adapter`](https://github.com/sola
|
|
|
6
6
|
|
|
7
7
|
Users of these libraries do not need to take any extra steps:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- `@solana/wallet-adapter-react@">=0.15.21"`
|
|
10
10
|
|
|
11
11
|
Those libraries automatically bundle the Mobile Wallet Adapter plugin, and enable it when running in a compatible mobile environment.
|
|
12
12
|
|
|
@@ -28,7 +28,7 @@ new SolanaMobileWalletAdapter({
|
|
|
28
28
|
});
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
Developers who use `@solana/wallet-adapter-react@">=0.15.21"` can supply this custom instance to `WalletProvider` which will use it to override the default one.
|
|
31
|
+
Developers who use `@solana/wallet-adapter-react@">=0.15.21"` can supply this custom instance to `WalletProvider` which will use it to override the default one.
|
|
32
32
|
|
|
33
33
|
```typescript
|
|
34
34
|
const wallets = useMemo(
|
|
@@ -106,7 +106,8 @@ When you call `connect()` but no wallet responds within a reasonable amount of t
|
|
|
106
106
|
Alternatively, you can use the included `createDefaultWalletNotFoundHandler()` method to create a function that opens the Solana Mobile ecosystem wallets webpage.
|
|
107
107
|
|
|
108
108
|
## Android Chrome Browser Issues
|
|
109
|
-
|
|
109
|
+
|
|
110
|
+
Chrome on Android has a policy of blocking all navigation that does not come from explicit user gestures (click, tap, swipe, keypress). As a result, MWA Intent navigation to a wallet app will be blocked if it does not come from a user gesture.
|
|
110
111
|
|
|
111
112
|
You will see an error like:
|
|
112
113
|
|
|
@@ -115,5 +116,3 @@ Navigation is blocked: solana-wallet:/v1/associate...
|
|
|
115
116
|
```
|
|
116
117
|
|
|
117
118
|
There isn't a way around this on the Android Chrome Browser, but you can write a mobile app if you need this behavior.
|
|
118
|
-
|
|
119
|
-
|