Communicating with an IOS app

I am wondering if anyone has had success and suggestions about methods for communicating with IOS apps from KM (from a Mac on the LAN)?

I have an IOS app that communicates with a bluetooth device. The app and the device has an API for BLE commands. I am wondering how communications could work between a Mac running KM on the same LAN as the IOS device, is it URL commands? Something else? Any help to point me in the right direction. Thanks!

-- Possibly a 3rd party, scriptable app on the phone that KM can talk to? (Is that even a thing?)

This could be tricky -- generally iOS apps don't listen for network traffic, though you might be able to spoof that by using a shared file that the iOS device regularly checks for updates.

That sounds like a lot of work. Have you tried installing the app on your Mac and controlling it directly? Or if the device has an API you could send the calls directly from KM, skipping iOS completely.