I opened an internal feature request, but in the meantime (and assuming our implementation requires a user to manually trigger a session termination) you can rig something similar up:
- Create a new Session custom property with a key of “retired” and set the value to
false
. - Place a Button which will be used to Terminate Session somewhere (most likely a Header/Footer which is always displayed).
- When the Button is clicked, set
self.session.custom.retired
to have a value oftrue
. - Now when your Session receives calls to update the GPS coordinates (from Tracking perspective app coordinates), check against the
retired
session property, and if it isfalse
, don’t send the response.