Shake gesture and BLE

Hi I am working on a project that is using BLE and shake gesture.


I could send some data through BLE when user shakes the device while app is in FOREGROUND.


However, I could not find a way to shake gesture working when app is in BACKGROUND. (background or killed, simply NOT Active)


I even tried to put becomefirstResponder in App Delegate. So it can be triggered when the device gets notification from BLE device.


However, this method was not successful.


Let me know what you guys think.


Thank you in advance.