Siri Plugin
Add Siri Shortcuts support to your iOS WebView app and open app content by voice.
Last updated:
Enable Siri integration by entering your plugin token in static let siriEnabled within Config.swift and adding the Siri capability to the WebViewGold target.
Reach out to [email protected] for more information.
How to implement Siri functionality
- Create a JavaScript function that Siri should trigger:
function playRadio() {
// Add desired functionality
}
- Add a button or link to register the Siri command (avoid phrases like "Open" which may confuse Siri):
<a href="addtosiri://?command=Play%20Radio&jsFunction=playRadio()">Add Play Radio to Siri</a>
The command parameter provides the recommended phrase, while jsFunction specifies the JavaScript function to execute.