I could not get these two notifications EAAccessoryDidConnectNotification
and EAAccessoryDidDisconnectNotification
after connecting Lightning kBD or Smart KBD with my APP.
But it worked on iOS9.3 with my code as below,
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_accessoryDidConnect:) name:EAAccessoryDidConnectNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_accessoryDidDisconnect:) name:EAAccessoryDidDisconnectNotification object:nil];
[[EAAccessoryManager sharedAccessoryManager] registerForLocalNotifications];
What's the cause?
P.S.: I got this following message in the logs. Couldn't find the "com.apple.private.externalaccessory.showallaccessories" entitlement