How to enable and disable bluetooth using Appium Java in both iOS and Android

I have a scenario in my automation that I have to enable the bluetooth and verify bluetooth is enabled using a network call and vice versa. So I need to enable and disable bluetooth in device using Appium Java in both Android and iOS. In Appium we have a method for toggle location on and off but I didn’t find a method for bluetooth. Kindly assist how to enable and disable bluetooth using Appium Java

2 Likes