hello i m new in flutter i m developing an application in flutter in which there is button after click on the button it will call directly to the number without pressing green button how i can archive this functionality. i have used URL launcher but it is opening the diler and we need to press green button.
Asked
Active
Viewed 132 times
-1
-
Does this answer your question? [How to Make a Call directly in Android](https://stackoverflow.com/questions/14238410/how-to-make-a-call-directly-in-android) – Majed DH May 13 '20 at 08:30
-
no my app is in flutter it is not a native android app – priya kushwah May 13 '20 at 08:35
-
I know, if something cannot be made in native languages. cross-platform language like flutter can't do it too. – Majed DH May 13 '20 at 08:54
-
(i got the sol) _launchURL() async { // Replace 12345678 with your tel. no. android_intent.Intent() ..setAction(android_action.Action.ACTION_CALL) ..setData(Uri(scheme: "tel", path: "your number")) ..startActivity().catchError((e) => print(e)); } – priya kushwah May 13 '20 at 09:13
-
good for you. did it work? – Majed DH May 13 '20 at 09:45
-
yes it is thanks for help – priya kushwah May 13 '20 at 18:24
1 Answers
-1
i got the solution for android we can use call_flutter plugin for the same

priya kushwah
- 29
- 1
- 1
- 6