If you would like notifications from the ObservationGraph SDK in the app’s background state, we recommend integrating Engine via BroadcastReceivers as opposed to Listeners. We provide the abstract class
FactualClientReceiver that extends a BroadcastReceiver and replaces
The main difference between our Listener example and BroadcastReceiver example is that you must reference your Receiver in your AndroidManifest.xml. We do the following in our example:
... <receiver android:name=".LoggingFactualClientReceiver"/> </application> ...
Setting or registering a receiver is also a little different, for example:
... FactualObservationGraph.setListener(LoggingFactualClientReceiver.class); ...