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."}
Checked whether the library version is supported by the version where you are compiling the application?
– Leandro Angelo
is running on which platform? Android, iOS?
– Ricardo Pontual
@Leandroangelo is yes
– Bruno Miqueas
@Ricardopunctual I’m doing in c#, is an executable that only tends to have this function.
– Bruno Miqueas
Bruno, support validation depends on target, Android is one, Ios and Windows has others, see code
– Ricardo Pontual
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.
– Bruno Miqueas