ibm-mobilefirstworklight-serverworklight-runtimemobilefirst-studio

MobileFirst Geo-trigger "dwellInside" callback not invoked


I am working with the Mobile First Platform studio 7.1 and following the documentation on location services here Documentation. I am doing all my testing with the Mobile Browser Simulator.

I have noticed that while testing with the MBS the callback functions for the sample (DwellInside) are not getting invoked. For example, the app says that an alert will displayed if the location has changed in the last 3 seconds.

enter image description here

I have created a sample application similar)to the one that can be downloaded from the "Documentation" link here:MyCode

My version(which is just gets the locations and does a DwellInside) also cannot get the call back to be invoked.

Is there something that I am missing? Please advise.


Solution

  • To not leave a question unanswered, as mentioned by @user2674117 in the comments:

    you will need to pass it new coordinates after startAcquisition. New triggers are evaluated the first time a new coordinate is supplied; it doesn't assume the last given position is necessarily current.