Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

WebView: Make Call and Send Email

$
0
0

Hello,
i need to make call and send email by WebView. I used Platform Renderer to take link and then I send link to my Shared Project with static method in App.cs.

public static void JavascriptAction(string input)
        {
            try
            {
                Device.BeginInvokeOnMainThread(() =>
                {
                    var url = "tel:+390931456789";
                    Device.OpenUri(new Uri(url));
                });
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
#if DEBUG
                throw;
#endif
            }
            finally
            {
            }
        }

This works in Android but in iOS nothing happens!

Can you give me support?

Thank you very much

Esteban


Viewing all articles
Browse latest Browse all 77050

Trending Articles