Shortcuts

RSS for tag

Help users quickly accomplish tasks related to your app with their voice or with a tap with the Shortcuts API.

Shortcuts Documentation

Posts under Shortcuts tag

109 Posts
Sort by:
Post not yet marked as solved
0 Replies
24 Views
I'm working on an App Shortcut using the new AppIntents framework in iOS 16 and I'm trying to get the user's current location, everything is enabled and set-up correctly with the permissions func perform() async throws -> some IntentResult { //Request User Location IntentHelper.sharedInstance.getUserLocation() guard let userCoords = IntentHelper.sharedInstance.currentUserCoords else { throw IntentErrors.locationProblem } //How to wait for location?? return .result(dialog: "Worked! Current coords are \(userCoords)") { IntentSuccesView() } } And here is the IntentHelper class class IntentHelper: NSObject { static let sharedInstance = IntentHelper() var currentUserCoords: CLLocationCoordinate2D? private override init() {} func getUserLocation() { DispatchQueue.main.async { let locationManager = CLLocationManager() locationManager.delegate = self print("FINALLY THIS IS IT") self.currentUserCoords = locationManager.location?.coordinate print(self.currentUserCoords) } } } extension IntentHelper: CLLocationManagerDelegate { func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) { print(error) manager.stopUpdatingLocation() } } Problem is, this sometimes, very rarely works, most of the times it prints nil, so how would you go about waiting for the location?
Posted
by Roadout.
Last updated
.
Post not yet marked as solved
0 Replies
37 Views
Hello reader I'm encountering an issue with the shortcuts app and "Get contents of URL". I tried different URLs as tests, and I always get this error: I can reach the URL properly via a regular browser call. Is there a network setting I need to include to activate?
Posted Last updated
.
Post not yet marked as solved
5 Replies
609 Views
The “append to note” in shortcuts cannot use a variable (created from find notes). Using a valid variable will always prompt the user for input, as if ask every time was selected. If you specify the note name (not via a variable) it works as expect. Any advice would be appreciated.
Posted Last updated
.
Post not yet marked as solved
4 Replies
1.8k Views
iOS16 can only set wallpaper from shortcuts with legacy lock screen wallpaper(The first lock screen when long press to edit the lock screen). But I deleted the legacy lock screen and cannot bring it back. So shortcuts set wallpaper not working any more. This issue comes from iOS16 beta 1,2,3,4 The only way I think is to downgrade to iOS15(get the legacy lock screen) and update to beta version again. Is there any better way to solve it?
Posted
by Peter Cai.
Last updated
.
Post not yet marked as solved
0 Replies
89 Views
Firstly i’m completely new to scripting and developemnt, I was suggested to check this forum by an Apple shop expert. I’m looking for a workflow automation / macOS app / iphone app (or all three) to automate document processing between pages, numbers, pdf, and to send e-mails. If anybody feels they can help me it would be much appreciated. I would be willing to pay as you would make my life much easier on a daily basis. Thanks
Posted Last updated
.
Post not yet marked as solved
0 Replies
100 Views
I want to create a shortcut that tiles two apps to the left and right. I cannot find a way to do this. there is the split screen shortcut in the gallery but it does. not enter the full-screen tiled mode that I want. does anyone know how to do this? id prefer apple shortcuts but an apple script or a keyboard maestro macro would be helpful if it cannot be done in shortcuts. I am familiar with apple scripts but am a complete noob with shortcuts and keyboard maestro. the apps I have in mind are safari and trakt (a tv show tracker). if it's possible I would like to do the same with two finder windows since apple seems to ignore the possibility of a dual-pane finder.
Posted
by Rikyli.
Last updated
.
Post not yet marked as solved
4 Replies
459 Views
I have built a specific shortcut that queries a specific note based on a particular rule . The shortcut used to work just fine before iOS 16 and it would output the queried note and open it right away. (My query mainly consist of a particular folder and creation date= today). If the query does not result any value then the shortcut would create a new entry in that particular folder (using if/ otherwise script). Basically I use this as a journaling tool and I create a daily note stored in my Journaling Folder to which I point the query. If no notes have been created yet for a new day, the shortcut would create one (would run a create note with a particular template function), then for the rest of the day, whenever I click on that shortcut, it would keep opening the same created note until the day ends and the clock resets because for the rest of the day the query would output a value ( ie there would be a note that fits the query criteria: found under s specific folder snd created today). Now every time I run the shortcut, I will get a drop down menu with a list of my most recent iCloud notes although under the preview window of my shortcuts it does seem my query is detecting the note, it just can’t open it. My bet is the “open specific note” command is broken and can’t be linked to specific filtering criteria rules. Please help/ major impact on daily productivity (I am using the same logic for a bunch of other daily notes as well for other purposes).
Posted
by OZB.
Last updated
.
Post not yet marked as solved
1 Replies
136 Views
hi! I'm having issues with the app Pages, in particular the keyboard shortcuts. As I use my MacBook to write notes for my university classes I find really useful the "styles" option. I set up the shortcuts for the ones I use the most with F1, F2 and F3. My issue emerged around a month ago, when they stopped working. To be precise, the shortcut works, but only if I select the text beforehand, not by clicking and writing after, which is the way I use the most (and saves the most time). I checked on a friend's MacBook, which exactly the same as mine (MacBook Air M1, 2020, 13") and the shortcuts work both selecting the text and without. I tried everything to fix the issue: I deleted and reinstalled the app, restarted the computer, used safety mode, I even REDOWNLOADED MACOS! nothing is working. If you can help me please say something, I'm growing incredibly frustrated, especially for a laptop which I paid lots for.
Posted
by gaiaa.
Last updated
.
Post not yet marked as solved
0 Replies
157 Views
Hello, On the wwdc22 Dive into App Intents video in 16:08 you can see that part of parameters are in ParamaterSummary and one is in the drop-down menu. When I am adding a ParamaterSummary to my AppIntent the drop-down menu is disapearing so part of my parameters is not able to set. I have tried force to display drop-down menu by chosing specific result of perform() method by even that the parameters are not displayed there. How can I split parameters into ParamaterSummary or drop-down list? Best, Marcin
Posted
by Mwloczko.
Last updated
.
Post marked as solved
3 Replies
331 Views
Hello, I have successfully implemented AppIntents with custom parameters based on AppEntity as described in the WWDC video https://developer.apple.com/videos/play/wwdc2022/10032/. When running the app in the iOS Simulator, everything works great. When trying to archive manually for upload to TestFlight, or using Xcode Cloud the Extract App Intents Metadata archive step fails with the following error: appintentsmetadataprocessor[89770:29069096] Starting appintentsmetadataprocessor export appintentsmetadataprocessor[89770:29069096] Writing Metadata.appintents appintentsmetadataprocessor[89770:29069096] Metadata root: /Users/***/Library/Developer/Xcode/DerivedData/YYY/Build/Intermediates.noindex/ArchiveIntermediates/ZZZ/InstallationBuildProductsLocation/Applications/GGG.app/Metadata.appintents appintentsmetadataprocessor[89770:29069096] Writing ExtractedAppShortcutsMetadata.stringsdata file appintentsmetadataprocessor[89770:29069096] Writing ExtractedParameterSummaryMetadata.stringsdata file appintentsmetadataprocessor[89770:29069096] Warning: error: could not determine type for property: MyApp.MyIntent.parameter from binary Command ExtractAppIntentsMetadata emitted errors but did not return a nonzero exit code to indicate failure The resulting build can actually be uploaded to TestFlight, but the AppIntent does not work properly when used in Shortcuts. The custom typed parameter is shown as in the Shortcuts app as "generic" parameter and can not be properly populated, queried.
Posted
by enodev.
Last updated
.
Post not yet marked as solved
3 Replies
396 Views
I am using CustomIntentMigratedAppIntent shortcuts actions. When I want to show them in a SiriTipView, then it does not show up. I get two messages in the console: "[Metadata] Couldn't read autoShortcutProviderMangledName key from metadata." "Provided AppIntent does not match an App Shortcut, SiriTipView will not display." In the previous Xcode it worked well.
Posted Last updated
.
Post not yet marked as solved
1 Replies
171 Views
Hi does anyone know if its possible to create a shortcut to toggle a sim line on or off. I want to be able use a shortcut to toggle my business sim plan to off or on without having to go into the settings menus. the closest iv got is being able to toggle a specific line from 3g to 4g or 5g. thank you
Posted
by Shorts01.
Last updated
.
Post marked as solved
2 Replies
232 Views
Hi everyone, I have developed an app which donates user activities and creates shortcuts in the Shortcuts App for handling the Fritz!Box home automation devices via Siri, with the created shortcuts. The Fritz!Box is a very popular router in Germany, which can control bulbs, power plugs, heating, etc. After update to WatchOS 9, shortcuts created with my Apps ‘Fede’ or ‘Fede Lite’ are still working, but Siri shows the error message: ‘An error occurred while running . The operation could not be completed. (SiriLinkFlowPlugin.WFOpenInteractionFlow error 4)’. Until WatchOS 8, everything was working fine. The shortcut execution is interrupted: if there are actions after my activity (I add some manually sometimes), they are not executed. I get the userActivity correctly in the func handle(_ userActivity: NSUserActivity) method of the WKExtensionDelegate. The userActivity.interaction is nil. I tried re-donating, invalidating and resignCurrent without success. IMPORTANT: This happens only, if you start the shortcut with Siri. If it’s started from the Shortcuts App, everything works fine, so I guess, that's a bug in Siri or the Shortcuts App. I saw the error message also on the iPhone, but very rarely. Has anybody faced this issue? Do you know any workaround? I'd appreciate every help! Thank you in advance, Fer
Posted
by QuinoBLN.
Last updated
.
Post not yet marked as solved
1 Replies
201 Views
I'm looking at this tutorial on app intents and shortcuts: https://arctouch.com/blog/implementing-app-shortcuts-intents And it says "Each phrase also has to contain your app name. To make it easier, you can provide the system with a list of synonyms for your app name and then use the applicationName token instead of your app name as a string literal" But it doesn't provide an example of using an applicationName token. I've tried searching for this but can't find anything. What is the applicationName token and what might an example of it being used be in a shortcut?
Posted
by mungbeans.
Last updated
.
Post not yet marked as solved
0 Replies
211 Views
In Shortcuts before 2 or so iOS upgrades, I was able to put a specific section name in Health, e.g., "Steps", to go to the specific section. Although the original shortcuts still works, these names have disappeared from the "Search for apps and actions", so I have no way to go to other sections. How can I have a shortcut go to a specific section in Health? All I can do now is just open Health app by "Open Health". HELP!!!
Posted
by hyperinfo.
Last updated
.
Post not yet marked as solved
1 Replies
166 Views
Hi.Ich habe folgendes festgestellt.Wenn ich in shortcuts ein Bild mit Base64 encode erhalte ich nicht das selbe, wie wenn ich in Swift img.pngData().base64EncodedString() verwende.Habe ich das Prinzip von Base64 nicht verstanden oder kann/muss man da noch Dinge einstellen?Danke Schonmal im Voraus(:
Posted
by NaimadDev.
Last updated
.
Post not yet marked as solved
0 Replies
169 Views
Hi, 1] I want a shortcut to react to an incoming notification from an existing app and click on it. Clicking on the notification opens the app (or bring the app to the front). 2] And then click on a certain button on the page in that app. Are part 1 and part 2 even possible? I would already be happy with only part 1. Thanks!
Posted
by digibeta.
Last updated
.