diff --git a/globals.html b/globals.html index e8c3fe8..c6cabd4 100644 --- a/globals.html +++ b/globals.html @@ -90,7 +90,7 @@
  • @@ -112,7 +112,7 @@
  • @@ -135,7 +135,7 @@
  • @@ -158,7 +158,7 @@
  • @@ -180,7 +180,7 @@
  • diff --git a/index.html b/index.html index 96fdde3..9703741 100644 --- a/index.html +++ b/index.html @@ -108,6 +108,23 @@ https://uiwjs.github.io
    -canOpenURL: failed for URL: "weixin://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
    +

    设置 URL Schemes 并列为白名单,在 ios/<应用名称>/Info.plist 中添加

    +
    <key>CFBundleURLTypes</key>
    +<array>
    +  <dict>
    +    <key>CFBundleURLName</key>
    +    <string>weixin</string>
    +    <key>CFBundleURLSchemes</key>
    +    <array>
    +      <string>wx500b695a47bd364b</string>
    +    </array>
    +  </dict>
    +</array>
    +<key>LSApplicationQueriesSchemes</key>
    +<array>
    +  <string>weixin</string>
    +  <string>weixinULAPI</string>
    +</array>
    iOS: RCTBridge required dispatch_sync to load RCTDevLoadingView.