c# - 如何使用 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");
}
解决方案
推荐阅读
- javascript - 如何在 nuxt 中获取外部 js 文件范围内的 d3-selection-multi?
- python - 如何使用 Selenium Python 打印电子邮件地址
- database-design - 一对多关系 - 父子定义
- node.js - 部署后的空白页面 - 使用节点反应应用程序
- javascript - Javascript 从 HTML 中的表格中获取数据并构建包含表格数据的对象数组
- firebase - QueryDocumentSnapshot 是否在监听我们使用它的次数?
- firebase - 如何在 vue 上处理 Firebase 身份验证
- python - 如何让我的代码更简单、更干净?(具有类别和类别产品的供应商机器)
- android - 颤振剪辑路径
- javascript - React Native:计时器不断重置