callKeep.hasDefaultPhoneAccount(context, <String, dynamic>{
'alertTitle': 'Permissions required',
'alertDescription':
'This application needs to access your phone accounts',
'cancelButton': 'Cancel',
'okButton': 'ok',
}).then((userHasTapedOk) {
// we can handle the case when the user refuse to give his permission
});
Also I've a question. Why the _setupAndroid method doesn't trigger the _hasDefaultPhoneAccount method ? Why we have to call the setup method and the hasDefaultPhoneAccount separately ?
Now we can use hasDefaultPhoneAccount that way
This will be usefull