cordova plugin add cordova-plugin-cocoapod-support --save
或
ionic cordova plugin add cordova-plugin-cocoapod-support
cordova plugin add cordova-plugin-qiyukf --variable APP_NAME=你的APP_NAME --variable APP_KEY=你的APP_KEY --save
或
ionic cordova plugin add cordova-plugin-qiyukf --variable APP_NAME=你的APP_NAME --variable APP_KEY=你的APP_KEY
ios
<edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
<string>XXX需要使用您的摄像头</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
<string>XXX需要访问您的相册</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
<string>XXX需要访问您的地理位置</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryAddUsageDescription">
<string>XXX需要访问您的相册</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSMicrophoneUsageDescription">
<string>XXX需要访问您的麦克风</string>
</edit-config>
window.Qiyukf.open(
() => {
console.log('打开客服成功');
},
e => console.error(e)
);