Posts

Post not yet marked as solved
1 Replies
408 Views
This link demonstrates that we should be able to handle custom intents in-app. My first question is that can this be done for system intents too? That is, can we avoid making an intent extension altogether and handle a system intent directly in app? Also, I am facing some issue trying to implement SiriKit for my tvOS app. I have tried the following: Added Siri in Signing & Capabilities in .xcodeproj file of my app. Added Privacy - Siri Usage Description string in pInfo.list. Called the requestSiriAuthorization function in my app code flow. Because of the above 3 steps, a pop up appears on my app asking the user to grant authorization to use Siri which I allow. I also implemented my handlerForIntent in my app delegate: - (nullable id)application:(UIApplication *)application handlerForIntent:(INIntent *)intent { NSLog(@"handlerForIntent Enter - [DEBUG_STRING]"); return NULL; } I am not returning any handler for now because I just want this function to be triggered somehow however, that is not happening. I added a system intent in the Supports Intent of the target. Specifically, the INAddTasksIntent. I haven't added any code pertaining to resolving, confirming or handling of this specific intent. My entire concern for now is to catch the intent in handlerForIntent function given above. As per this documentation , I should be able to invoke this intent using the phrases given in the link. However, this doesn't work. Is it because I need to implement an intents extension for this particular intent? Since, the previous step for system intent didn't work, I went to try out the custom intent in-app handling that was mentioned in the first link. Here, I added a custom intent of Search category, following the steps in the link. And I added the custom intent in the Supported Intents list. However, I don't think these changes are taking effect as I cannot seem to get the symbols for this custom intent. Do I have to configure some build setting to generate the symbols for the custom intent? If someone can help in what exactly am I missing here, it'll be very helpful. Many thanks.
Posted
by aydavq.
Last updated
.
Post not yet marked as solved
0 Replies
430 Views
I want to make some SiriKit custom intents to control video playback on my app similar to what is done for audio in SiriKit Media Intents. For example, I want to add some custom intents that would enable me to control my app using Siri that follow the following recipes: "Siri, pause" that should pause the playback "Siri, seek to 1 hour and 30 mins" that should seek the playback to that point in time. "Siri, search for Manchester by the Sea on MyApp" that should open MyApp and search for the content on it. Can such intents be defined using SiriKit currently? I suppose I should be able to use the Standard Media Intents (which as the document mentions are applicable to audio only currently) for my purpose.
Posted
by aydavq.
Last updated
.