Changes

Jump to: navigation, search

An iOS 10 Example SiriKit Messaging Extension

203 bytes added, 18:26, 11 April 2018
no edit summary
[[File:ios_11_sirikit_enable_siri.png]]
Figure 96-1
[[File:ios_11_sirikit_intents_supported.png]]
Figure 96-2
In order to work with Siri, an extension must specify the intent types it is able to support. These declarations are made in the Info.plist files of the extension folders. Within the Project Navigator panel, select the Info.plist file located in the SiriDemoIntent folder and unfold the NSExtension -> NSExtensionAttributes section. This will show that the IntentsSupported key has been assigned an array of intent class names:
[[File:ios_11_sirikit_intents_supported.png]]
Figure 96-3
[[File:ios_11_sirikit_demo_select_run_target.png]]
Figure 96-4
“Use SiriDemo to say Hello to John and Kate.”
“Find Messages with SiriDemo.”
 
If Siri indicates that SiriDemo has not yet been set up, tap the button located on the Siri screen to open the SiriDemo app. Once the app has launched, press and hold the home button to relaunch Siri and try the above phrases again.
[[File:ios_11_sirikit_edit_scheme.png]]
Figure 96-5
[[File:ios_11_sirikit_intent_query.png]]
Figure 96-6

Navigation menu