Post-activity Apps

I'm trying to write an app that would show post-activity, similar in experience to the Recovery Advisor. Is that even possible? If so, pointers in the docs?
  • Hmmm, only thing I can imagine is using a datafield during the activity which triggers an app when exiting. (If that is even possible...?). Also, what do you want to do with the activity? Because activity details aren't available for connect-iq developers, only overall summary information (again, using a datafield you might be able to record the stuff you wish to record though and somehow supply this to the app).

    All in all, maybe not impossible but it's gonna be a pretty nasty job if it IS possible imo.
  • In a watch-app, I'll often display a summary page after the activity has been saved while the app is still running. With time, distance, etc all shown on the screen. Things that are available while recording.

    You're limited to what's available in CIQ or generated by your app, and that doesn't include recovery time.

    You can't access any of the activity's data from a separate CIQ app, so this has got to be part of the app that records the data.
  • Former Member
    Former Member
    I suppose you could do something like what jim_m_58 suggests. You might be able to us exitTo() to point to a re"recovery widget". You would pass the info as the "args" dictionary in the System. Intent to the new widget and parse the info in the app to display or use. Here are the links to the API docs with examples for each:

    https://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox/System.html#exitTo-instance_method
    https://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox/System/Intent.html

    If you are looking at recovery times, you could have the widget save the info from the intent and a timestamp to the object store. When the user activates the widget, you can check the current time against the recovery time in the object store and display a current recovery. Not sure what your end goal is, but these are some options.

    Thanks,
    -Coleman