为什么我在 iOS 的 PhoneDialer.Open 中收到 FeatureNotSupported 异常,但在 Xamarin Forms 的 Android 中工作正常?

问题描述

我正在使用 Xamarin Essentials PhoneDialer.Open(string number)

在 Android 模拟器中运行良好,但在 iOS 中无法运行。在模拟器中尝试时抛出错误 FeatureNotSupported。

号码格式为xxx-xxx-xxxx

解决方法

在模拟器中尝试时抛出错误 FeatureNotSupported。

您需要在物理 iOS 设备中测试此功能,然后才能使用。