Skip to content

Commit 8d8b575

Browse files
committed
doc: Update document.
1 parent f6caea5 commit 8d8b575

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,27 @@ https://uiwjs.github.io/react-native-wechat/apple-app-site-association
6161
> -canOpenURL: failed for URL: "weixin://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
6262
> ```
6363
64+
设置 URL Schemes 并列为白名单,在 [`ios/<应用名称>/Info.plist`](https://github.com/uiwjs/react-native-wechat/blob/f6caea5b7d58dd05b7fc110ff76295c5e2be927b/example/ios/example/Info.plist#L23-L43) 中添加
65+
66+
```xml
67+
<key>CFBundleURLTypes</key>
68+
<array>
69+
<dict>
70+
<key>CFBundleURLName</key>
71+
<string>weixin</string>
72+
<key>CFBundleURLSchemes</key>
73+
<array>
74+
<string>wx500b695a47bd364b</string>
75+
</array>
76+
</dict>
77+
</array>
78+
<key>LSApplicationQueriesSchemes</key>
79+
<array>
80+
<string>weixin</string>
81+
<string>weixinULAPI</string>
82+
</array>
83+
```
84+
6485
</details>
6586

6687
<details>

0 commit comments

Comments
 (0)