I'm trying to create custom Siri shortcut with Intents UI.
What I want to know is how I make custom intent which has no button on Siri interface.
Image is like Kayak's Siri Interface.
https://www.apple.com/newsroom/images/product/os/ios/standard/ios12_iphonexs-siritravelplans-09172018_inline.jpg.large_2x.jpg
When I create custom intent from intentdefinition file, I have to choose certain category from limited categories list (Do, Order, Start etc). Then I call my custom intent, Siri shows action buttons ("Do", "Order", "Cancel") in the interface bottom area. But I want not to display these action buttons. Can I have a way? I've read official documents, unfortunately I did't found it.
Related
After doing some research I discovered that a user can make a shortcut a widget by holding down on the home-screen, pressing the top left button, searching for "shortcuts", and then tapping on the specific shortcut.
From this article I discovered that it's possible to automatically create a shortcut for the user (they don't have to physically add a shortcut in the shortcuts app that your app donated, instead they can just click a button).
Thus, I was wondering if it's also possible to create a widget for a shortcut you defined, where all the user has to do is tap a button within your app, instead of going through the whole search process.
Thanks
I have generated an MFMessageComposeViewController to send a preconfigured SMS message, and I now want to draw the user's attention to the send button. The user has already initiated the "send message" process from within the app, but they must then press the send button within the MFMessageComposeViewController to actually send the message. The send button in the standard MFMessageComposeViewController is "hidden away" in the bottom corner of the message body where some, not so tech-savvy users, struggle to find it (a fact not opinion, as I have had test users ask what to do next)!
Apple does not allow this message compose interface to be modified, except for certain exceptions. I have looked into the UIAppearance protocol, which provides limited options to modify aspects of the MFMessageComposeViewController, but the options do not apply to the send button.
I have looked into the documentation, and there are options to highlight or focus on interface objects using the accessibility options, but I can not find a way of linking this to the send button within the MFMessageComposeViewController where I have limited access to the UI components.
How do I highlight the send button within the MFMessageComposeViewController, or access the button so that I can draw the user's attention to it?
Unfortunately, it is not possible to directly highlight or modify the appearance of the send button within the standard MFMessageComposeViewController. This is because the interface provided by the MFMessageComposeViewController is not directly customizable and is intended to provide a consistent user experience across all iOS apps.
One solution to consider is to provide additional instructions or guidance to the user before they are presented with the MFMessageComposeViewController. This could include an on-screen message or tutorial that specifically points out the location of the send button within the interface, or providing a visual indicator such as an arrow or highlight box to guide the user to the correct location.
Another option is to present the MFMessageComposeViewController in a modal view controller and add additional instructions or guidance in the modal view controller.
Also, you can use the accessibility options to add a VoiceOver label to the button, which can be read out loud to the user when the button is in focus.
It's worth noting that Apple's HIG (Human Interface Guidelines) discourages from customizing the system's standard view controller. You should try to stick to the standard iOS interface so that the user can feel comfortable and familiar with the app.
I'm trying to add buttons to a widget having family type ".systemLarge". I want to execute some code without opening the app.
Anyone knows how to do that?
For example the Shortcuts App Widget includes buttons you can tap to execute a shortcut without opening the app.
Widgets are read only. The Shortcuts app is an exception.
https://developer.apple.com/documentation/widgetkit/creating-a-widget-extension
Widgets present read-only information and don’t support interactive elements such as scrolling elements or switches. WidgetKit omits interactive elements when rendering a widget’s content.
You can add Link controls on medium and large size widgets to get a button like behavior.
This won't allow you to create interactive widgets, which change their content by clicking elements inside the widgets.
But you will be able to tell which "link" was clicked based on the widgetUrl provided when your app gets activated through the widget.
See the chapter Respond to User Interactions here:
https://developer.apple.com/documentation/widgetkit/creating-a-widget-extension
Is their a way to configure the long press on a message that was sent? For instance if you long press on text you have the ability to copy and tap more. Currently my app only displays more. Is their a way to add copy in the action sheet for custom apps as well?
Unfortunately the transcript of the conversation is not accessible to us. It's part of the iMessage app. For that reason you won't be able to custom the option menu.
In ios 8 new app extensions, is it possible to create an app extension that would enable performing an action on a highlighted text? Similar to how today the copy and select sub menus appear, would it be able to add another custom action?
Something similar to what you have described could be accomplished with an Action type extension, which allows your extension to act on the user's current selected content (text, image, etc). However, you won't be able to populate your action in the copy/paste submenu, as iOS action extensions are limited to displaying an action sheet or modal view. This will be presented when a user makes a selection, taps the Share button, and selects your extension from the activity view controller. Read more in the App Extensions Programming Guide under "Action" (page 48).