Open softlion opened 3 years ago
On iPad without flash lights, using Flashlight.TurnOnAsync / TurnOffAsync is crashing.
https://en.wikipedia.org/wiki/IPad_(5th_generation)
Instead it should does nothing. Or provide a method Flashlight.IsSupported()
Crash
Yes, we throw an exception when it is not supported -> https://github.com/xamarin/Essentials/blob/main/Xamarin.Essentials/Flashlight/Flashlight.ios.cs#L26
Description
On iPad without flash lights, using Flashlight.TurnOnAsync / TurnOffAsync is crashing.
https://en.wikipedia.org/wiki/IPad_(5th_generation)
Expected Behavior
Instead it should does nothing.
Or provide a method Flashlight.IsSupported()
Actual Behavior
Crash
Basic Information