I'm trying to implement a callback ( in this case ble_CharacteristicChanged from the BLEextended library ) within a service, so the user can record heart beats even when the screen is turned off. But I can't get the service to listen for the callback. It seems that only the main activity can listen for it, even if the BLEmanager is declared in the service.
Is there any way to make a service listen for this callback?
Yes, I'm initializing the Blemanager from the sub service_create.
Even so, I can't get callbacks to run in the service, although they run fine in the main activity.