I have a project requirement that my iOS App (written in Swift) should get notification when the iPhone gets connected to an Android device/Mac through a cable (e.g. lightning-to-usb).
I heard this is possible with Darwin Notification but I've never worked with it before, and seems like there isn't any well-documented article that contains all about Darwin Notification from Apple.
Can anyone help me with which notification (status/identifier) of the Darwin Notification Centre to look for to get notified when such wired connection is made between two devices (one being iPhone ofcourse)?