cordova-plugin-qiyukf

1.0.1 • Public • Published

七鱼客服 cordova 插件

相关依赖 cordova-plugin-cocoapod-support

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)
);

Package Sidebar

Install

npm i cordova-plugin-qiyukf

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

12.2 kB

Total Files

8

Last publish

Collaborators

  • kuyoonjo