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

app stops working after some hours #25

Open
git-ere opened this issue Apr 22, 2020 · 11 comments
Open

app stops working after some hours #25

git-ere opened this issue Apr 22, 2020 · 11 comments

Comments

@git-ere
Copy link

git-ere commented Apr 22, 2020

after some hours of work the app seems to stop working without any message.
the icon disappears and when restarting the app everything seems to work again.

is there a way to get additional information about the unexpected stop or a way we can assist you in testing?

@maebli
Copy link

maebli commented Apr 22, 2020

I did not experince this, tested on a pixel3a with Android 10. I have had the app running for 3 days+.

@akuckartz
Copy link

I can not confirm this issue.

@git-ere
Copy link
Author

git-ere commented Apr 22, 2020

I have the issue on a Huawei P20 Pro, Android 9

now after 5 to 6 hours the app stopped working

@romixch
Copy link

romixch commented Apr 22, 2020

From my own experience of developing an app with background services and 10'000+ installations, this can become nasty. Some vendors implemented pretty restrictive resource management that kills your app while running in the background. Huawei and Samsung are the worst ones. Unfortunately, they have the biggest market share. There is some help and documentation around this: https://dontkillmyapp.com/. But the solution depends on the use case. I guess there is some additional work to do here. Although I did not check if this has been addressed in the code here.

@RobbertH
Copy link

Asking the powermanager to ignore battery optimizations for this app might help: https://stackoverflow.com/a/54982071/13237645

@git-ere
Copy link
Author

git-ere commented Apr 23, 2020

I found an option to set it to "Manage manually" and allowed background etc. I'll continue to test

@njulemon
Copy link

njulemon commented Apr 23, 2020

No need to ask for ignoring battery optimizations for this app.

The phone enters in Doze mode after a while when :

  • screen is off AND
  • user does not make any significative movement AND
  • Phone in unplugged.

FYI, there is two states for Doze Mode (Idle and Deep). Phone enters in the first mode (Idle) when three conditions are present for 30 min to 1 hour. It will probably interrupt bluetooth operations. But I guess you do not want to scan when a user is sleeping or at rest.

@git-ere
Copy link
Author

git-ere commented Apr 23, 2020

But I guess you do not want to scan when a user is sleeping or at rest.

if I'm sitting for some hours at my desk (without moving) and people come for a talk to me, I think my phone should continue scanning to detect the devices of my visitors - if the visitor gets sick in a week I would like to be informed.
Or did I misunderstand something?

@git-ere
Copy link
Author

git-ere commented Apr 24, 2020

I found an option to set it to "Manage manually" and allowed background etc. I'll continue to test

since I've changed the power setttings more than 24 hours ago, the app runs without any problem.
this setting seems to solve the problem on the huawei p20

@zukunft
Copy link

zukunft commented Apr 25, 2020

I had the issue with the "old" next-step.io app on lineageOS 16.0 on a OnePlus 5t, but the actual develop branch may work fine. My problem is, that the sync with the server is not obviously not yet working. Has anyone setup a server for testing the sync?

@dalwhin
Copy link

dalwhin commented Apr 26, 2020

My problem is, that the sync with the server is not obviously not yet working. Has anyone setup a server for testing the sync?

Could this be the same problem as in issue 34 ?

dilox referenced this issue in noiapp/noi-app-android Apr 27, 2020
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

8 participants