I need to make a direct Phone Call in flutter but it's just opening the Phone app dialer.
No direct phone call is made.
In fact, I also tried with url_launcher
package for this task but am getting the same result.
_launchURL() async {
SimplePermissions.requestPermission(Permission.CallPhone)
.then((state) async {
if (state == PermissionStatus.authorized) {
String a = Uri.encodeFull("#");
String url = 'tel:*123' + a;
if (await canLaunch(url)) {
await launch(url);
} else {
throw 'Could not launch $url';
}
}
});}
Has anyone solved this before?