crownstone / crownstone-app

Mobile app for the Crownstone (Android & iOS). The apps are freely available from Google and Apple app stores. The code is based on React Native.
https://crownstone.rocks/app/
Apache License 2.0
16 stars 14 forks source link

[android] After swiping the app to the background it thinks it enters a sphere on getting to foreground #26

Closed mrquincle closed 3 years ago

mrquincle commented 7 years ago

Reproduce:

  1. Swipe app to background on Android.
  2. Open it again from the menu at the top.

Now it turns on all lights according to their "enter sphere" settings. It also shows again the tap-to-toggle explanation windows.

Expectation:

Only "enter sphere" events when starting the app for the first time, not when bringing it to the foreground. Also only explanation windows on starting the app for the first time, not when bringing it to the foreground.

vliedel commented 7 years ago

Good point! This is probably due to the react-native code being freshly started, we'll have to find a way to tell whether the background service is already running when starting the foreground app.

AlexDM0 commented 3 years ago

This has been fixed by behaviour.