if #available(iOS 16.0, *) {
print("donated")
let intent = BasicIntent()
IntentDonationManager.shared.donate(intent: intent)
}
Trying to test if donations work with the new App Intents framework.
- Donating the shortcut once a user taps a button.
- The shortcut is not appearing on the lock screen.
- Everything else is working as expected. The Shortcut is appearing in the Shortcuts App and is working via Siri.
In developer settings I have
Display Recent Shortcuts
-> On
Display Donations on Lock Screen
-> On
Allow Any domain
-> On
Allow Unverified sources
-> On
Running iOS 16.2, iPhone 11.
Donated intents influence what the system shows to the customer in places such as the Siri Suggestions widget on iOS, or through widgets contained in a Smart Stack on iOS and watchOS. In addition to the IntentDonationManager
API that @Subhanc inquired about, there are the PredictableIntent
and RelevantContext
APIs, which also influence the system’s context for when to display these suggestions to the customer.
If you're using the settings in the Developer menu for testing donations and finding they are not assisting you with your testing, please open a bug report regarding that, and post the FB number here.
— Ed Ford, DTS Engineer