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

Automatic reporting turns off automatically #508

Closed
rajeevn1 opened this issue Aug 9, 2017 · 18 comments
Closed

Automatic reporting turns off automatically #508

rajeevn1 opened this issue Aug 9, 2017 · 18 comments

Comments

@rajeevn1
Copy link

rajeevn1 commented Aug 9, 2017

I am using v1.2.7 on Nexus 5x running Android-8 (upcoming). I am running a private mqtt server used by a few people. Everything works great except on my phone automatic location reporting automatically turns off.

Another person has the exact same setup and is not facing the issue.

What can I try to narrow the root cause. This happens even when Remote commands is disabled.

@rajeevn1
Copy link
Author

rajeevn1 commented Aug 9, 2017

I found the issue. The app was missing the storage permission.

I think it is a bug. It should request the permission.

@rajeevn1 rajeevn1 closed this as completed Aug 9, 2017
@binarybucks
Copy link

The storage permission has nothing to do with it. It isn't requested because it is just needed as a workaround for configuration imports with file management apps that don't implement a content provider.

Can you please verify if setting the permission really fixes it?

@binarybucks binarybucks reopened this Aug 10, 2017
@rajeevn1
Copy link
Author

you are right. It does not fix it. I was running the app without notification, but with battery optimization off.

As a workaround I am running the app with notification, till I can learn more.

@rajeevn1
Copy link
Author

what i learned is that it happens less often with notification on. Also the auto notification seems to turn off when the app is swapped out (heavy load).

Are there any conditions, that are coded, when the auto reporting is turned off by the program.

@rajeevn1
Copy link
Author

i see the following often in the log:

08-17 15:02:08.259 766 2093 W ActivityManager: Scheduling restart of crashed service org.owntracks.android/.services.ServiceProxy in 1000ms

@rajeevn1
Copy link
Author

Is there a reason why "pub" auto reporting key is not listed on configuration management json screen. The system does not allow adding it either.

@CiquattroFPV
Copy link

I have a similar problem.. I'm using a private mqtt.. when I'm pushing the report button in owntracks app (android) the app seems don't send the data of my gps locantion and I cant see my updated location in the mqtt server.. but I modify something in the connection settings and save the app send the correct data to the mqtt server.

@binarybucks binarybucks added this to the Archive milestone Oct 14, 2017
@LINKIWI
Copy link

LINKIWI commented Dec 17, 2017

Was there ever a user-facing resolution to this problem? This still happens very frequently on my device.

Symptom: turn on automatic reporting, close app, wait a few hours, open app again, notice that automatic reporting has turned itself off.

@rajeevn1
Copy link
Author

i switched to https://play.google.com/store/apps/details?id=com.mendhak.gpslogger&hl=en which has support for http logging. I invoke mosquitto_pub from cgi.

@triplepoint
Copy link

I'm not sure if it helps anyone, but my wife and I just tracked down one cause of this behavior.

Android N and later has a Data Saver feature that will restrict background network activity. If this feature is on and restricts OwnTracks from reporting, OwnTracks will apparently turn off further reporting (showing the "Reporting" switch in preferences as disabled).

You can either disable Data Saver on the affected phone, or there's a app whitelisting feature where you can allow OwnTracks to be excepted.

@binarybucks
Copy link

While the data saver can certainly cause a lack of reporting, it will not turn of the reporting switch in the app.
Whitelisting the app certainly is a good idea however.

@triplepoint
Copy link

Then I'm at a loss to explain why my wife's phone was turning off the Owntracks "reporting" switch multiple times a day before we whitelisted the app in her Data Saver config, and hasn't done so since. Any ideas?

@Kanga-Who
Copy link

I have the same issue constantly for myself and my Wife. I have disabled data saver altogether, this has not helped to fix the problem.

I'm not sure why this thread has been marked closed when the issue is still present?

@declankenny
Copy link

I am facing the same problem.

@bosscyril
Copy link

Same behaviour here. It feels quite random to me. It may stay several days with reporting on, then it eventually turns off.

App is configured in Private HTTP mode. I'm running Android 7.1.1

Just guessing... could it be caused by multiple consecutive timeouts to the server??

@binarybucks
Copy link

binarybucks commented Jun 5, 2018

No guessing required, it’s caused by the navigation drawer switch that sets the preference to off when loading the button. It has been removed in the latest beta release.

@rikki78
Copy link

rikki78 commented Sep 10, 2018

Is there a workaround for this or when is a new version without this issue?

@binarybucks
Copy link

The issue has been resolved in 2.x

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

No branches or pull requests

9 participants