IOS暂未开放SDK开发者文档,IOS暂时需要借助webview,webview详情查看:
SaleSmartly聊天插件JSSDK开发者文档
<key>NSCameraUsageDescription</key>
<string>我们需要访问相机以便您能拍照</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>请求访问相册</string>
<key>NSMicrophoneUsageDescription</key>
<string>请求访问麦克风</string>
文件路径:plugin-ios/ContentView.swift
struct ContentView: View {
// 需要加载的链接地址(https://xxx),请替换为业务对应的H5地址或专属链接地址
let url = URL(string: "https://xxx/")!
var body: some View {
ZStack {
WebView(url: url)
.edgesIgnoringSafeArea(.all)
Spacer()
}
}
}
其中url为展示到页面上的地址,需自行替换。