makeRequest does not call method(:onReceive) in background / WF

Hi !

i've a problem i can't deal with (as a newbie!)

In a watchFace, i put a background Service to call a Financial web service API (would be the same for weather API).

The BF is ok, makeRequest call the webservice, i have my info in the simu / file -> View HTTP Traffic.

But after the request, onreceive function isn't called.

Andy Idea ?

(i put Sys.println almost everywhere…  !)

thanks !

Marco

PS:

time simulation speeding Don't  have any impact on background time services?

I set time simu to x100 faster, but obliged to wait for 5mn !

(

testing target MK1

Photon 4.8.0

SDK 3.1.6

)

  • It seems  i do not succeed in using storage (even if it look easy : setProp and getProp!). I'll take a deeper look into Garmin spec for this. I probably make a mistake in updating storage with bad values...

    yes,that's exactly what happens... waiting for next temporal event,

    Do i need to make something in some "onEvent()" (like onSettingsChanged() ) to upate the view (so with OS data) after launchng some other app ?

    Thanks very much !

  • One thing I do at the end of onBackGroundDatat() is do a Ui.requestUpdate() so the view gets updated.

    That's also where I update storage with the new data from the background.