-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
Android App sucked all my high speed data plan #647
Comments
Can you please do this:
thx |
|
Thanks, the important part is
line 2-4: It should be killing all the streams before exiting Can you increase the time it is paused in your test and see if your network monitor still shows the app sucking data? |
|
Thanks - did you check if your network data was being consumed while in background during the 2nd logs? |
confirmed - need to investigate. For now, please turn off background cellular data for zmNinja in android settings->data usage |
was about 100 MB, so yes, mobil data was consumed again :( |
can you send me an email - I have a debug version I'd like you to test. pliablepixels @ gmail |
@florie1706 - please test the debug apk and once you confirm it consistently works without consuming NW bandwidth in multiport mode, we can close this |
@pliablepixels I tested it the last 8 hours and background data seems to be okay right now. It just increased by 100kb which is ok for that period and a couple of foreground to background switches. |
I just released |
Xenoxaos do you have multiport enabled? |
Pushed |
Got zmNinja running with zoneminder this morning and it's plowed through about a gig of mobile data. Running 1.3.007, will tell you if I have multiports configured once I find out. Didn't explicitly set any options with that name. |
I have not enabled multiport; I'm running the app installed from Google Play. |
The 1.3.007 patch logs a "force exiting app since its android" and quits |
zmNinja had used 1.32GB in the background before I disabled background data for the app. I currently have a cached background instance of zmNinja, but no other indication that it is running. If I open it and press the home button, I see a second cached instance of it that remains until I reopen the app, and "formally" exit it. |
Can you post the logs which capture a case when you move the app to the background? |
If you can tell me which logs specifically you need. This is my first time contributing feedback to an android app, but I'm a hardware and firmware engineer (so general debugging background) and can do my own googling, once I know what you're after. |
@DamnJack zmNinja logs.
Good to know you have a debugging background, so let me explain what I'm doing. When you move the app to the background, I detect if you are running on Android and forcibly exit the app. So in your app, if I see "force exiting app since its android" show up in logs, then my code handler is called, but for whatever reason the exit function is doing nothing in your case. Which will be my next debugging step. |
ARGH there was a typo in the code. @DamnJack please send me an email (pliablepixels @ gmail). I have a test version for you. |
…r 5 sec, if exitApp did not work, removed redundant multiport exit app
Looks like that took care of it; I sent you a log for good measure. |
Looks like a bit of residual data in the background, but only a couple of kB at a time |
Good to know. The logs you sent me don’t show a background and resume action so I’m not sure which of my fixes worked in your case. Would it be possible to send logs again? ( launch app, delete logs, go to bkgrnd, wait 20s, start app send logs). Thx. |
Done. I assume by "go to background" you mean hitting the home button, as opposed to manually exiting zmNinja? |
Yes, thanks. |
I'll be making a 1.3.008 release soon - I'll keep this issue open for a few days - if I hear no further issues on this after release, I suppose we can consider it closed. |
Sounds good. You'll note here when it's on the play store so I can switch back to it? |
Just pushed 1.3.008 |
Hi @pliablepixels ,
I switched to Multi-Ports, so I tested zmNinja if it works from outside my local network. That was around noon today. After that I closed zmNinja, so it was in the background with the "exit app in background" option activated. But it seems, that this did not work as the app sucked 1.4 GB within a couple of hours.
I was not at home during that time, so I was just connected to my mobil data or my work wifi.
Attached I send you the current log:
The text was updated successfully, but these errors were encountered: