sirishortcuts

Siri shortcuts iOS 13 bug INUIAddVoiceShortcutButton

百般思念 提交于 2019-12-10 11:13:18
问题 In my project I use siri shortcuts with INUIAddVoiceShortcutButton . I use this method to create the button and associate the NSUserActivity : let button = INUIAddVoiceShortcutButton(style: .blackOutline) view.addSubview(button) button.shortcut = INShortcut.userActivity(activityPreCreated) In iOS 12 all works right, the button add or edit the shortcuts. But in iOS 13 the button only add but doesn't edit the shortcut and remain with the text "Add to Siri". Is a bug of the beta or I do

siri shortcut button (INUIAddVoiceShortcutButton) shows wrong title when have multiple shortcuts (NSUserActivity)

时间秒杀一切 提交于 2019-12-09 10:44:57
问题 I've 2 siri shortcuts in my App. I use NSUserActivity to donate these shortcuts. I've also created 2 NSUserActivityTypes in my info.plist. There are 2 view controllers which handle these shortcuts (1 view controller for 1 shortcut). If I add 1 siri shortcut from 1 view controller and then go to 2nd view controller the native siri shortcut button ( INUIAddVoiceShortcutButton ) on 2nd view controller automatically picks the first shortcut (created from 1st view controller) and shows "Added to

Siri shortcuts iOS 13 bug INUIAddVoiceShortcutButton

空扰寡人 提交于 2019-12-06 11:04:08
In my project I use siri shortcuts with INUIAddVoiceShortcutButton . I use this method to create the button and associate the NSUserActivity : let button = INUIAddVoiceShortcutButton(style: .blackOutline) view.addSubview(button) button.shortcut = INShortcut.userActivity(activityPreCreated) In iOS 12 all works right, the button add or edit the shortcuts. But in iOS 13 the button only add but doesn't edit the shortcut and remain with the text "Add to Siri". Is a bug of the beta or I do something wrong? Thanks in advance. 来源: https://stackoverflow.com/questions/57410172/siri-shortcuts-ios-13-bug

How can I open my SwiftUI app and perform a function using NSUseractivity from within Siri Intent Extension?

吃可爱长大的小学妹 提交于 2019-12-04 12:58:34
问题 My Problem My app has its own Shortcuts actions created using Intents Extensions. They perform background actions perfectly. For some actions, I'm trying to make the intent extension open the main (container) app when run in Shortcuts and perform a function. I'm having trouble with NSUserActivity and I'm not sure if it's the fact it's a SwiftUI project or the way I'm implementing it (or both). What I've tried I have registered my NSUserActivity name as an NSUserActivityType in my info.plist (

How to create a Siri Intent that accepts input passed from user

二次信任 提交于 2019-12-04 10:47:36
问题 I created a custom Intent with parameters like so: I've donated it: let intent = PlayIntent() intent.color = color let interaction = INInteraction(intent: intent, response: nil) interaction.donate() and it shows up correctly: However, I'd like an Intent which accepts input from the user. Example, Messages.app: How do I configure my custom Intent to handle input? 回答1: As far as I can tell, this functionality is not available for third-party shortcuts - by which I mean, the shortcuts not

CoreBluetooth API MISUSE - Issues with CBCentralManager in iOS 13 features like Siri Shortcuts

▼魔方 西西 提交于 2019-12-04 05:49:18
问题 I added Siri Shortcuts to my application and to utilize voice commands The error Im getting in the debugger is: [CoreBluetooth] API MISUSE: can only accept this command while in the powered on state I have looked at a vast number of duplicates of this for issue on here and the consensus is that CBCentralManager needs to be a class level variable, which I have. I still cannot get UpdatedState delegate method to execute more than one time in the context of Siri Voice Commands or the new iOS 13

siri shortcut button (INUIAddVoiceShortcutButton) shows wrong title when have multiple shortcuts (NSUserActivity)

*爱你&永不变心* 提交于 2019-12-03 12:42:04
I've 2 siri shortcuts in my App. I use NSUserActivity to donate these shortcuts. I've also created 2 NSUserActivityTypes in my info.plist. There are 2 view controllers which handle these shortcuts (1 view controller for 1 shortcut). If I add 1 siri shortcut from 1 view controller and then go to 2nd view controller the native siri shortcut button ( INUIAddVoiceShortcutButton ) on 2nd view controller automatically picks the first shortcut (created from 1st view controller) and shows "Added to Siri" with suggested phrase instead of showing "Add to Siri" button. I double checked that each

How can I open my SwiftUI app and perform a function using NSUseractivity from within Siri Intent Extension?

倖福魔咒の 提交于 2019-12-03 08:39:27
My Problem My app has its own Shortcuts actions created using Intents Extensions. They perform background actions perfectly. For some actions, I'm trying to make the intent extension open the main (container) app when run in Shortcuts and perform a function. I'm having trouble with NSUserActivity and I'm not sure if it's the fact it's a SwiftUI project or the way I'm implementing it (or both). What I've tried I have registered my NSUserActivity name as an NSUserActivityType in my info.plist ("com.me.project.activityName"). I've added the code below to my AppDelegate. I initialise a new

CoreBluetooth API MISUSE - Issues with CBCentralManager in iOS 13 features like Siri Shortcuts

余生长醉 提交于 2019-12-02 10:27:26
I added Siri Shortcuts to my application and to utilize voice commands The error Im getting in the debugger is: [CoreBluetooth] API MISUSE: can only accept this command while in the powered on state I have looked at a vast number of duplicates of this for issue on here and the consensus is that CBCentralManager needs to be a class level variable, which I have. I still cannot get UpdatedState delegate method to execute more than one time in the context of Siri Voice Commands or the new iOS 13 shortcuts app. This means my application cannot do consecutive functions. Keep in mind, it works ONCE,