How can we launched the dialler directly from xamarin prepopulating it a with number containing #

81 Views Asked by At

I wish to write a program in xamarin cross platform that will populate (#123#) and launched the dialler with one click in the xamarin app. I am very new in xamarin... your help is of great neeed.thanks in advance.

1

There are 1 best solutions below

4
Krunal Bagadia On

You can Open Dialer in Xamarin using Xamarin.Essentials. here is step by step guidance.

Open the AndroidManifest.xml file under the Properties folder and add the following inside of the manifest node:

<queries>
  <intent>
    <action android:name="android.intent.action.DIAL" />
    <data android:scheme="tel"/>
  </intent>
</queries>

using Xamarin.Essentials;

Call using, PhoneDialer.Open(number);