Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

My SCALAR_SENSOR service that connects through the whistlepunk.api.scalarinput AIDL doesn't get an onDestroy() when science journal is closed on chromeos #37

Open
s-m-t opened this issue Apr 29, 2019 · 0 comments

Comments

@s-m-t
Copy link

s-m-t commented Apr 29, 2019

Sorry for the long title... couldn't think of anything more succinct. On multiple android phones whenever I close science journal the service that I use to scan devices, sensors, update science journal with new sensor data etc through the whistlepunk.api.scalarinput AIDL gets an onDestroy() call. I'm currently relying on that call to let the rest of my code that handles bluetooth connections etc know it is ok to shutdown, close my gatt connections, stop scanning, etc.

On chromeos when the google science journal app is closed this onDestroy() call never happens.

Is this a bug? Or am I relying on undefined behavior?

If you think it is a bug just point me in the general direction I should be looking in the science journal code and I'll be happy to try and fix it. If it isn't a bug I would appreciate some advice on how I should tell whether science-journal is still running/cares about what I am doing from my end. Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant