Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

CallNumber is not assignable to type Provider

$
0
0

@pdj wrote:

I imported in app.module.ts

import { CallNumber } from ‘@ionic-native/call-number’;

on node_modules folder, @ionic-native - call-number - index.d.ts is as below

import { IonicNativePlugin } from '@ionic-native/core';
/**
 * @name Call Number
 * @description
 * 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.
 *
 * @usage
 * ```typescript
 * import { CallNumber } from '@ionic-native/call-number';
 *
 * constructor(private callNumber: CallNumber) { }
 *
 * ...
 *
 *
 * this.callNumber.callNumber("18001010101", true)
 *   .then(res => console.log('Launched dialer!', res))
 *   .catch(err => console.log('Error launching dialer', err));
 *
 * ```
 */
export declare class CallNumber extends IonicNativePlugin {
    /**
     * Calls a phone number
     * @param {string} numberToCall The phone number to call as a string
     * @param {boolean} bypassAppChooser Set to true to bypass the app chooser and go directly to dialer
     * @return {Promise<any>}
     */
    callNumber(numberToCall: string, bypassAppChooser: boolean): Promise<any>;
    /**
     * Check if call feature is available
     * @return {Promise<any>}
     */
    isCallSupported(): Promise<any>;
}

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles