Phonedailer function with Serialport

Asked

Viewed 81 times

2

I am implementing a c# application that needs to be automatically dialed. Searching I found a function Phonedailer.Open that receives in parameter the number of the phone. However I do not know the next step. It follows code of the function:

public async void TesteLigação(string number)
    {
            try
            {
                PhoneDialer.Open(number);
            }
            catch (ArgumentNullException anEx)
            {
                // Number was null or white space
            }
            catch (FeatureNotSupportedException ex)
            {
                // Phone Dialer is not supported on this device.
            }
            catch (Exception ex)
            {
                // Other error has occurred.
            }
    }

Running only so it gives the following error:

{"This Functionality is not implemented in the Portable version of this Assembly. You should Reference the Nuget package from your main application project in order to Reference the Platform-specific implementation."}

  • 1

    Checked whether the library version is supported by the version where you are compiling the application?

  • 1

    is running on which platform? Android, iOS?

  • 1

    @Leandroangelo is yes

  • 1

    @Ricardopunctual I’m doing in c#, is an executable that only tends to have this function.

  • 1

    Bruno, support validation depends on target, Android is one, Ios and Windows has others, see code

  • Good morning Ricardo, sorry for the delay to answer. Well, from what I know, I’m doing for windows. The proposal is to have a customer page where when clicking on the client, the application will communicate directly with the central Telefonica performing an automatic call to the customer.

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.