Design great actions for Shortcuts, Siri, and Suggestions

RSS for tag

Discuss the WWDC21 session Design great actions for Shortcuts, Siri, and Suggestions.

View Session

Posts under wwdc21-10283 tag

5 Posts
Sort by:
Post not yet marked as solved
0 Answers
111 Views
We have a number of shortcuts that build a HTML with JS in a Text action. We then base64 encode that Text action and then use the URL action to parse it as "data:text/html;base64, Base64 Encoded". We then open the URL with the Open action. This works perfect in iOS on iphone and Ipad. Now that macOS supports Shortcuts we tried our automations and all of them fail to open the URL. The error we get is "Shortcuts could not open the app for the URL scheme "data" because the app is not installed on this device Any ideas would be greatly appreciated
Posted
by jkoen.
Last updated
.
Post not yet marked as solved
0 Answers
273 Views
I develop my an IM app for support Siri suggestion feature. I donate a INSendMessageIntent when user send message in group. I create INPerson array by users in that group. But the photo share sheet only show max 20 persons, the trust is I set persons parameters count is 56. Who can explain why limit show max group users count, or my anything wrong? I circle the key point in picture by red pencil. The second and the fourth chat that users in group count more than 20.
Posted
by lcrystal.
Last updated
.
Post marked as solved
1 Answers
618 Views
The session says that "when someone taps Add to Siri, the shortcut is added instantly, using your suggested invocation phrase". (at 21 min in Video) Now we can see that new UI at iOS 15 beta 2. But on iPadOS 15 beta 2, it looks like unexpected behavior. It looks like INUIEditVoiceShortcutViewController shows in UISplitViewController, but we expect that in UIViewController itself. And when we tap "Back" button, INUIEditVoiceShortcutViewController shows on left side of window. It's Okay when the window has narrow width. This is what i expected. Is there any way to implement "Add to Siri" feature or is it an iPadOS bug ?
Posted
by user21.
Last updated
.
Post not yet marked as solved
2 Answers
642 Views
I wrote a minimum app to check "Add to Siri" feature. but I found that we can not removed a voice shortcut just in particular case. Tap add to Siri button to add voice shortcut first time. Now we can see iOS 15's new user interface to add shortcut to Siri. Just tap Done button. The button says "Added to Siri". And I confirmed that we can execute my feature by my voice correctly. Then tap the button again. Next, I want to remove shortcut, so tap remove button. Then the button says "Add to Siri" which implies the shortcut has not registered to system any more. That's nice. Tap the button once again. Lastly, I want to remove shortcut again, but unexpectedly nothing happened and modal screen remains to keep showing when we tap the remove button. Seems like bug? in Code I set INUIAddVoiceShortcutButtonDelegate to my Instance. and it has two callback method. func present(_ addVoiceShortcutViewController: INUIAddVoiceShortcutViewController, for addVoiceShortcutButton: INUIAddVoiceShortcutButton) func present(_ editVoiceShortcutViewController: INUIEditVoiceShortcutViewController, for addVoiceShortcutButton: INUIAddVoiceShortcutButton) One is called when my shortcut is not registered to system yet. and another's called when it's registered already. And my code set editVoiceShortcutViewController.delegate just latter one. I think this is the reason why my button has NO-response. But I don't know how to prevent being called former callback. Is this my own coding issue or Bug of iOS 15 beta 3 ?
Posted
by user21.
Last updated
.