Flutter教程

Call Number

Contents

Call a number directly from your Cordova/Ionic application. NOTE: The iOS Simulator (and maybe Android Simulators) do not provide access to the phone subsystem.

https://github.com/Rohfosho/CordovaCallNumberPlugin

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic 拨打电话 Call Number插件的安装(Installation)

ionic cordova plugin add call-number npm install @ionic-native/call-number
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/call-number

Ionic 拨打电话 Call Number插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic 拨打电话 Call Number插件的用法(Usage)

import { CallNumber } from '@ionic-native/call-number/ngx';

constructor(private callNumber: CallNumber) { }

...


this.callNumber.callNumber("18001010101", true)
  .then(res => console.log('Launched dialer!', res))
  .catch(err => console.log('Error launching dialer', err));