I am using Call Number - Ionic Documentation
To try and call a number from capacitor.
Following the instructions and added to the provider in app.module.ts no luck. Does not reach error.
Any ideas?
import { CallNumber } from '@ionic-native/call-number/ngx';
constructor(private callNumber: CallNumber,) { }
async onCallNumber(phoneNumber: string) {
try {
console.log('about to make phone call');
const result = await this.callNumber.callNumber(phoneNumber, true);
console.log(result);
} catch(err) {
console.log(err);
this.notificationService.alertError('Unable to make phone call.', 'An Error Occurred');
}
}
App.module:
import { CallNumber } from '@ionic-native/call-number/ngx';
providers: [
CallNumber
]