Reputation: 329
My app allows users to pair with specific BLE devices fine, but if my app is put in the background and the user pairs (or unpairs) with the BLE device using the Android bluetooth settings, my app is not aware of this. I've tried using ACTION_PAIRING_REQUEST, but my receiver never receives it. Would someone illustrate how to do this, or point me at example code that does?
Upvotes: 0
Views: 158
Reputation: 367
Try using ACTION_BOND_STATE_CHANGED instead. I don't know if that's the case but be aware of Implicit broadcasts restriction. Some broadcasts cannot be registered in AndroidManifest.xml anymore.
Upvotes: 1