This document explains how to use Siri shortcuts with Provenance to quickly open your favorite games.
Provenance supports several ways to open games using Siri shortcuts:
This shortcut allows you to open a specific game in Provenance by its MD5 hash.
This shortcut allows you to open a game by its name using fuzzy search. Provenance will find the closest match to the name you provide.
This shortcut allows you to specify both a game name and a system name for more precise matching. For example, "Super Mario Bros on NES" or "Sonic on Genesis".
- Open the Shortcuts app on your iOS device
- Tap the "+" button to create a new shortcut
- Tap "Add Action"
- Search for "Provenance" in the search bar
- Select "Open game" from the list of actions
- Choose which parameter to use:
- MD5: Enter the exact MD5 hash of the game
- Game Name: Enter the name of the game (fuzzy matching supported)
- System Name: Enter the name of the system (optional, for more precise matching)
- Tap "Next" and give your shortcut a name (e.g., "Open Super Mario Bros")
- Optionally, add the shortcut to your home screen or set up a Siri phrase
- "Hey Siri, open Super Mario Bros"
- "Hey Siri, play Sonic the Hedgehog on Genesis"
- "Hey Siri, start Pokémon Red on Game Boy"
You can find the MD5 hash of a game in Provenance by:
- Open Provenance
- Navigate to the game in your library
- Long-press on the game and select "Info"
- The MD5 hash will be displayed in the game information screen
For the fuzzy search features, you don't need to know the exact names. Provenance will try to find the best match based on what you provide. However, using names that are closer to the actual game and system names will yield better results.
Provenance also supports opening games via URL scheme:
provenance://open?md5=YOUR_GAME_MD5_HERE
Or using game name:
provenance://open?title=GAME_NAME_HERE
Or using both game name and system:
provenance://open?title=GAME_NAME_HERE&system=SYSTEM_NAME_HERE
You can use these URL schemes in other apps or shortcuts to open games in Provenance.
If your Siri shortcut is not working:
- Make sure Provenance is installed and has been opened at least once
- Verify that the game is in your Provenance library
- If using game name search, try using a more specific name or add the system name
- If using MD5, verify that the hash is correct
- Restart your device and try again
The Siri shortcuts integration uses the Intents framework to handle requests to open games. When a shortcut is triggered, Provenance uses the following search strategy:
- If an MD5 hash is provided, it looks for an exact match in the database
- If a game name is provided, it first tries an exact match, then falls back to fuzzy matching
- If both game name and system name are provided, it tries to find a game that matches both criteria
For developers: The implementation can be found in the following files:
PVIntentHandler.swift
- Handles the Siri intents with fuzzy search capabilitiesPVAppDelegate+Intents.swift
- Registers the intent handler and processes intent responsesIntents.intentdefinition
- Defines the available intents and their parameters