Skip to content

WatchExample Intent Extension

Electric Bolt edited this page Jun 29, 2019 · 1 revision

This example is written in Objective-C and requires watchOS 3.

For Appfigurate to be able to configure app extensions the following must be observed:

  • APLConfiguration subclass must be shared between watchOS app extension and watchOS intent extension.
  • Since the configuration is stored in the keychain, the keychain must be shared between the watchOS app extension and intent extension

For more information on keychain sharing and associated Info.plist attributes, see Advanced configuration.


To test the intent extension, use the instructions for WatchExample above.


Once WatchExample is running, long press the digital crown to invoke Siri.

Watch 0

Siri will be invoked:

Watch 1

Speak the following "send message using watch example".

Watch 2

If Siri responds with "unknown app watch example", then you should try again. Siri can take several minutes to recognise a new intent. See Xcode documentation Test Your Intents App Extension for more details.

Speak the following "bob".

Watch 3

In the console, you will see NSLog output, showing the current configuration of boolean property in the ExampleConfiguration class.

Console 0

Using Appfigurate on the paired iPhone, change the boolean property to the opposite value and click Apply. Speak again to Siri, and notice that the NSLog output in console has now changed.




    ActionExample Extension
    WatchExample Intent Extension

    APLConfiguration subclass
        Custom executable actions
        Supported property types
            plain NSString
            encrypted NSString
               Best practice
               String Encryption util
        UISlider icon types
    Advanced configuration
        App Startup
    Additional functions
    Display overridden config

    Export compliance
    Best practice
    App Store compliance

    Automation testing

Clone this wiki locally
You can’t perform that action at this time.