Languages

Menu
Sites
Language
Open phone dialer with specified number?

I'd like to open phone dialer with specified number on wearble xaml watch app based on Tizen 5.0.

 

On Xamarin,forms, I used the PhoneDialer.Open("specified number") using Xamain.Essential.

 

However, the tizen watch emulator returns error like "~~~" when PhoneDialerOpen("specified number") works.

 

Any help!

 

View Selected Answer

Responses

1 Replies
Mark as answer
Tizen .NET

Hi,
To use that api, you should declare the required privilege as below in the tizen-manifest.xml file. 
<tizen-manifest.xml>

 

  <privileges>
    <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
  </privileges>

Otherwise, the exception will occur.

I/DOTNET_LAUNCHER(17091): Unhandled exception.
I/DOTNET_LAUNCHER(17091): Xamarin.Essentials.PermissionException: You need to declare the privilege: `http://tizen.org/privilege/appmanager.launch` in your tizen-manifest.xml
I/DOTNET_LAUNCHER(17091):    at Xamarin.Essentials.Permissions.BasePlatformPermission.EnsureDeclared()
I/DOTNET_LAUNCHER(17091):    at Xamarin.Essentials.Permissions.EnsureDeclared[TPermission]()
I/DOTNET_LAUNCHER(17091):    at Xamarin.Essentials.PhoneDialer.PlatformOpen(String number)
I/DOTNET_LAUNCHER(17091):    at Xamarin.Essentials.PhoneDialer.Open(String number)

Please try it again after applying it.
Thanks.