IOS has not yet opened the SDK developer documentation. IOS temporarily needs to use webview. For details about webview, see: SaleSmartly chat plug-in JSSDK developer documentation
<code> <key>NSCameraUsageDescription</key>
<string>我们需要访问相机以便您能拍照</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>请求访问相册</string>
<key>NSMicrophoneUsageDescription</key>
<string>请求访问麦克风</string>
</code>
File path: plugin-ios/ContentView.swift
<code class="language-swift">struct ContentView: View {
// 需要加载的链接地址(https://xxx),请替换为业务对应的H5地址或专属链接地址
let url = URL(string: "https://xxx/")!
var body: some View {
ZStack {
WebView(url: url)
.edgesIgnoringSafeArea(.all)
Spacer()
}
}
}
</code>
The url is the address displayed on the page and needs to be replaced by yourself.
SaleSmartly IOS Demo example, click to download