Trying to get the CallNumber plugin working to add phone capability to my app.
Have installed the plugin from here: http://ionicframework.com/docs/v2/native/callnumber/
using
ionic plugin add call-number
and I import {CallNumber} from ionic-native.
and then in my class I have:
call(){
CallNumber.callNumber(“321”, true)
.then(() => console.log(‘Launched dialer!’))
.catch(() => console.log(‘Error launching dialer’));
}
Testing through Ionic View, nothing happens when running that function from a button click on iOS or Android.
This doesnt seem to be a widespread issue, so Im clearly missing something.
Does native phone dialling functionality just not work thru ionic view perhaps?
Actually, thinking it through, the Cordova SMS plugin isnt working either… so maybe I should be manually adding permissions somewhere? I thought the plugin installation handled the permissions, but maybe not.
Confused now! any advice please!