lewisl9029 / toc

Toc Messenger - A distributed messaging app that can sync across all of your devices
http://toc.im
GNU Affero General Public License v3.0
56 stars 1 forks source link

Investigate resource usage spikes on android devices #391

Open lewisl9029 opened 8 years ago

lewisl9029 commented 8 years ago

Saw the app at top in android power usage after running for a few days.

lewisl9029 commented 8 years ago

Looks like it was caused by using silent mode for the background-mode plugin and the app re-initializing itself over and over again.

lewisl9029 commented 8 years ago

Looks like that wasn't the only cause. Saw it happening again with the new release build, along with almost constant network usage. Saw almost 0 cpu and network activity in debugger though... And restarting the app fixed it...

Reopening for tracking but seems like it might be an issue with some native code (cordova or plugins).

lewisl9029 commented 8 years ago

Disabling autostart for now due to this.

lewisl9029 commented 8 years ago

Background mode plugin might be causing this. Try https://github.com/Viras-/cordova-plugin-powermanagement

http://developer.android.com/reference/android/os/PowerManager.html

lewisl9029 commented 8 years ago

Might have been fixed by #412 Havent seen it since. Might have had something to do with using external urls for notification icons.

lewisl9029 commented 8 years ago

Saw this again. Might have been #409

lewisl9029 commented 8 years ago

It wasnt... still seeing it after removing badges plugin.

Removing background-mode plugin for now as a workaround?

lewisl9029 commented 8 years ago

Wasn't that either... I have no clue what could be happening...