Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems running FIND app in background #97

Open
schollz opened this issue May 14, 2016 · 7 comments
Open

Problems running FIND app in background #97

schollz opened this issue May 14, 2016 · 7 comments

Comments

@schollz
Copy link
Owner

schollz commented May 14, 2016

Samsung S7 Edge running Android 6.0.1. Find App is V0.5. If I enter tracking mode then press the power button to lock the screen tracking continues to work fine. If I press the Home button first the behavior is different and I get those /track posts without the location guess.

Original: https://community.openhab.org/t/find-high-precision-indoor-positioning-framework-for-most-wifi-enabled-devices/9909/43?u=schollz

@sjcliffe
Copy link
Contributor

sjcliffe commented Aug 1, 2016

Just confirming this bug - I have an S7E running 6.0.1 too and see the same issue.

@holger-dunst
Copy link

I don't know if it is the same probleme but I noticed that running the app in background the value "Last seen" on the dashboard at https://ml.internalpositioning.com/dashboard/ isn't updated anymore. I am using android 6.0

@ihightower
Copy link

Hi I am confirming this bug also.. The app doesn't update location if it goes in background.

However, if I just power off (using the power button).. it continues to update the location.
If switch ON again.. and changing to other apps.. it doesn't update again.

Pls fix this.

OS: Android 6.0.1, OxygenOS version 3.1.0
Model: Oneplus Two, ONE A2003

Also Same behaviour Samsung Galaxy J7 (2016) SM-J710FN, Android 6.0.1

@schollz
Copy link
Owner Author

schollz commented Nov 3, 2016

Thanks!
I wonder, could you try the 3rd party native app Room+ and see if that works better?

@ihightower
Copy link

Thank you.. Room+ App seems to work running the background.

But I noticed different behaviour when the app is running the background... (or may be it is just me I imagined things as I can't reproduce the behaviour)...

Here are the different behavious:

  1. the app doesn't update while in background... (i couldn't reproduce the problem again, but it did happen as far as i can remember)
  2. it updates every 3 to 7 seconds or about.. (majority of the cases).
  3. it updates only every 2 minutes (observed by my colleague from the server connections).

Any guidance on it will be appreciated.

A separate question... how can one implement a solution where use GPS data when available and use IPS (indoor positioning.. which is FIND).. when GPS is not available, etc. Any ideas? Is there an app that you think can do both.

Thank you so much.

@schollz
Copy link
Owner Author

schollz commented Nov 7, 2016

@ihightower Glad its working kinda. :)

  1. the app doesn't update while in background...

I'm not sure why, this might be a Room+ problem or an Android 6.0.1 problem.

2/3) it updates every 3 to 7 seconds or about

The issue with the spurious updating is not a new one - there is a discussion about it here with data similar to what you are experiencing (updates 3-7 seconds and sometimes up to 2 minutes). I think it is controlled by how the Android phone "sleeps" when it is not in use. The only way around this was to use a wakelock, but thats a terrible solution because it keeps the screen on and uses a ton of battery. I'm not sure a way around this yet.

how can one implement a solution where use GPS data when available and use IPS (indoor positioning.. which is FIND)

I've been thinking about integrating GPS data, but as of yet there is no way to do this yet.

@ihightower
Copy link

@schollz Thank you so much for your comments. Very helpful.

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

No branches or pull requests

4 participants