The charger is not an "accessory" per se, it is rather a state of the battery. Here's a nice QA on how to get notified about power connection state.
That your accessory list is empty could be due to some other issue. Please elaborate your question and provide some of your code, it is easier to help out when we know more.
The charger is not an "accessory" per se, it is rather a state of the battery. Here's a nice QA on how to get notified about power connection state.
That your accessory list is empty could be due to some other issue. Please elaborate your question and provide some of your code, it is easier to help out when we know more.