Intents not showing up in WatchOS Shortcuts

I have developed a standalone WatchOS app which runs a stopwatch. I want to develop a shortcut that launches the stopwatch. So far I have created the Intent file, and added the basic code (shown below) but the intent doesn't show in the shortcuts app. In the build, I can see the intent metadata is extracted, so it can see it, but for some reason it doesn't show in the watch.

I downloaded Apple's demo Intent app and the intents show in the watch there. The only obvious difference is that the Apple app is developed as an iOS app with a WatchOS companion, whereas mine is standalone.

Can anyone point me to where I should look for an indicator of the problem?

Many thanks!

//
//  StartStopwatch.swift
//  LapStopWatchMaster

import AppIntents
import Foundation

struct StartStopWatchAppIntent: AppIntent {
    
    static let title: LocalizedStringResource = "Start Stopwatch"
    static let description = IntentDescription("Starts the stopwatch and subsequently triggers a lap.")
    
    static let openAppWhenRun: Bool = true
    
    @MainActor
    func perform() async throws -> some IntentResult {
            // Implement your app logic here
            return .result(value: "Started stopwatch.")
    }
    
}

Can you clarify what your expectations are here? Can you see your intent in the Shortcuts app on the phone? Since it's not possible to create shortcuts on the watch, the phone is where I'd expect to see this intent. If you then use that intent to create a shortcut in the Shortcuts app on the phone, it will sync to the watch and be available in the Shortcuts app there.

If you are not seeing your intent in the Shortcuts app on the phone, or you are not seeing the shortcut you created with your intent in the Shortcuts app on the phone sync to the Shortcuts app on the watch, please file Feedback and post the number here so we can have a look. Thanks!

I'm just learning at the moment, but essentially I want to tie the operation of the stopwatch to a hardware button, not just the screen (when you are running, you might want to push a button without looking, rather than have to look at a screen)

I am just developing on the simulator, and there is no phone app. I downloaded the AppIntentsSampleApp and that showed the intents on the Watch without launching the phone, so I wanted to do the same, but I think from what you are saying, I need to develop a companion app, and then they will show up?

Thank you

I was suggesting that the Shortcuts app on the phone should show the intents from your watch-only app, and that if it does not, we‘d love a Feedback about this.

Intents not showing up in WatchOS Shortcuts
 
 
Q