fixed ios wifi part support.

This commit is contained in:
aria committed 2026-04-22 18:23:18 +09:00
1 parent e8169780b8
commit faa51215f3
3 files changed
+130 -3

No files matched your search

+2 -1
View File
@@ -211,7 +211,8 @@ Android WiFi:
iOS WiFi:
- 使用 `NEHotspotConfiguration`。
- 必须在 Apple Developer 账号和 App entitlements 中开启 `Hotspot Configuration` capability。
- 插件会向 Cordova iOS entitlements 写入 `com.apple.developer.networking.HotspotConfiguration`,但仍必须在 Apple Developer App ID 中开启 `Hotspot Configuration` capability,并使用包含该 capability 的 provisioning profile 重新构建。
- 如果 iOS 返回 `NEHotspotConfigurationErrorDomain` code `8` / `internal error`,优先检查 App ID、entitlements、provisioning profile 是否都包含 `Hotspot Configuration`,并确认是在真机前台运行,不是在模拟器中测试。
- iOS 不提供第三方 App 断开当前 WiFi 的公开 API,因此 `disconnectWifi` 在 iOS 返回错误。
Firebase: