首页 > 解决方案 > 如何使用 Xamarin Forms iOS 应用程序中的特定电话号码打开 Whatsapp?

问题描述

我需要知道如何将 WhatsApp 从我的应用程序打开到特定号码。对于Android,以下工作正常,但我不知道它是否适用于iOS。这是我的Android代码:

try
{
    Device.OpenUri(new Uri("whatsapp://send?phone=+678115361041"));
}
catch (Exception ex)
{
    await DisplayAlert("Not Installed", "Whatsapp Not Installed", "ok");
    await DisplayAlert("", ex.Message, "ok");
}

标签: c#iosxamarin.formsxamarin.ioswhatsapp

解决方案


推荐阅读