Ticket Created
over 3 years ago

CIQQA-1057

background and battery draining

I don't know if it's a good place for such observation but I describe it here.

Wf check if((phone_connection==true) && (data_is_old==true)) and then WF

a. save in store info pending_request=true

b. calls BAG.registerForTemporalEvent

c. reads make_request and shows ... means waiting for response

d. in BAG.onTemporalEvent calls COM.makeWebRequest(..,. onReceive)

e. in BAG.onReceive() I read data from web and send it to app using BAG.exit

f. in APP.onBackgroundData I read data from BAG and set pending_request=false. I set pending_request to false ALWAYS even if error was. But when was an error I display it

I've have bigger battery draining since few months (f6p - 20.51) after new firmware installation. I've tried to find solution - no success. Yesterday I noticed big battery draining ~2%/hours. And noticed:

1. no internet connection in phone and BT connection on

2. ... - means waiting for respond

I waited about 2 hours and still waiting for response (...) and no errors on screen, means:

- onTemporalEvent  was not called at all

- or onTemporalEvent was callad but not onReceive

I switch on internet in phone and force downloading data and battery draining was 0.8%/h!!!!

Conclusion:

- why there is no timeout error? Is it mean that about timeout decides mobile app? watch should raise timeout!

- battery draining means something run in background and probably it is the system BAG serving app's backgrounds (trying e.g. call onTemporalEvent or waiting for response - something but in high power)