Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 10 Siri support for Workouts with custom vocabulary

In my app I'd like to be able to tell Siri something like:

So I enabled the Siri capability, added a target, implemented the INStartWorkoutIntentHandling (and also the other) delegate methods and everything works.

I can now say Start a workout with MyAppName. Perfekt!

Now I'd like to tell her something like Start an activity using MyAppName, or even Start a hike using MyAppName.

So I went and added a AppIntentVocabulary.plist looking something like that: enter image description here Quick question there... the Vocabulary item identifier... If the work- Hike f.e. should be used for start, end, pause, resume, cancel... should the identifier be the same for all of them?

Now I face three problems.

1. I can tell Siri Start a hike and it will work, she will ask me which app I should be using. I tell her Start a hike using MyApp and she will tell me that she can't find that on Apple Music?!? What the hell?

2. If I add the word Activity into my Vocabulary she will only open the iOS Activities App... Never ask if I may want to open my app.

3. On submission I get a punch of missing words-warnings Like No example phrase was provided for INStartWorkoutIntent in the "en" language which I do have! or Sample phrase "Start a Hike using MyAppName" was not classified as a INStartWorkoutIntent intent

I would be very very happy if someone could show me a valid sample of a AppIntentVocabulary.plist file that works fine with siri and iTunes Connect!

like image 672
Georg Avatar asked Oct 07 '16 14:10

Georg


Video Answer


1 Answers

Unfortunately no you cannot replace workout to activity or hike.

Sirikit only supports very limited doamins as of now.

In case of workout intent,Siri expects the phrase :Workout to be in the spoken phrase else siri will not open the app.

For exmaple:You will have to say Start a hike workout using My app.Before that you will have to register custom vocabulary and include hike or any other workout name in invocabulary list

like image 119
user3349726 Avatar answered Oct 22 '22 16:10

user3349726