I downloaded and tested the example you can find here: https://github.com/KhaosT/WatchActionButtonExample
It works fine in terms of creating the intents so your app can be linked to the physical button in WatchOS settings. I can add "print" sentences and see that the app catches all subsequent action button pushes. All good and fine.
But it doesn't really show how to link the intent to some action in the User Interface.
So my question is what kind of code to add to the perform() func in StartWorkoutIntent, so I can make some action in the User interface.
If the watchApp isn't running, I suppose it's not yet loaded when the StartWorkoutIntent is caught, so how do I get the information to the watchApp, that it was started from an Intent and should start the workout instead of waiting for user input?
This example is also based on the same example code above, but also just conviently writes "// Start your workout here" in the perform() func. https://crunchybagel.com/adding-support-for-apple-watch-ultra-action-button/