Check for the latest updates without running your Shortcuts.
Notice: Due to the changes made by Apple in the latest version of their operating system, any Shortcut created using iOS 13 (and iPadOS) will no longer be compatible with earlier versions such as iOS 12. To download and install UpdateHub for iOS 13, please follow THIS link.
UpdateHub was designed to keep all of your Shortcuts up to date without the requirement of running them individually.
Graphics by MediaKit
Bulk Search is UpdateHub’s bread and butter, allowing you to check all of your Shortcuts for updates at once. This is achieved by parsing every Shortcut in your library and fetching the data stored in a ”Comment Action” at the top. This is the only thing you’ll need to add in order for UpdateHub to fetch the latest updates from RoutineHub or a privately hosted json file.
Manual Search is an optional method to manually check RoutineHub or a privately hosted json file for the latest update. This will only check the Shortcut you’re currently running and is lightning fast. This is achieved by a ”Text Action” with the name of your Shortcut and the ”Run Shortcut Action” linking to UpdateHub.
Sometimes things break and us creators sometimes scramble trying to fix a broken update and publish a new version ASAP. To combat this issue, UpdateHub has support for rolling back an update. If there’s something wrong with a version currently accessible via RoutineHub and you delete it or you update your privately hosted json file, anybody who has already downloaded it will be notified to downgrade the next time they check for an update.
Below you will find detailed instructions on how to implement UpdateHub into your Shortcuts. This includes options for hosting your updates on RoutineHub or privately hosting them. You will also find an extra (optional) step to manually check for an update through your Shortcut. This step can also be used to automatically check for updates every 24 hours, you can see an example of this in the DEMO provided.
Note: If you experience any issues or require assistance, don’t hesitate to contact me via Reddit.
Multi-decimal version numbers are supported all thanks to the brilliant mind behind one of the more popular Shortcuts for iOS, UpdateKit. Mike Beasley recently updated his Shortcut to version 4.0, where he developed a script that will quickly compare two versions. Not only is UpdateKit Engine 1.1 most efficient way to do this, but it also supports multi-decimal version numbers. To learn more about UpdateKit and UpdateKit Engine, you can follow the link provided below.
Adding UpdateHub’s Bulk Search to your Shortcuts is quite possibly the easiest thing you’ll ever do. All UpdateHub requires from you to implement Bulk Search is a ”Comment Action” at the top of your Shortcut.
Due to the way UpdateHub fetches data from this comment, you may add some information about your Shortcut above the required text. Please keep this comment to a maximum of 12 lines in total to ensure UpdateHub can still find the data.
To check for the latest updates using RoutineHub, you can reference the image below.
To check for the latest updates using a privately hosted JSON file, you can reference the image below.
To ensure your privately hosted JSON file is in the correct format, I recommend using THIS Shortcut to create it.
To add a manual search to your Shortcut, use a Text Action containing the name of your Shortcut then add the Run Shortcut Action linking to UpdateHub.
When you check updates manually through your Shortcut, you’ll finish with 3 types of response codes.
When no updates are found, you’ll be returned with “NO-UPDATE”. In addition to this, UpdateHub will also send a notification to the user to inform them that they’re up to date.
If an update has been found and the user has chosen to install it, you’ll be returned with “UPDATE”. I highly recommend adding an Exit Shortcut Action if you are returned this code.
If an update has been found and the user has chosen to skip it, you’ll be returned with “SKIP-UPDATE”.
If there was a problem parsing data from the required Comment Action, you’ll be returned with “ERROR”.
Note: If you’d like to see this in action, you can download a demo that will check for an update automatically every 24 hours HERE
If you feel UpdateHub is the right fit for you and your Shortcuts, you may use the following on your RoutineHub page.
Latest Release Notes
1.0.1 - July 10, 2019, 3:48 p.m.
- Implemented a small notification and a download link for users running iOS 13.