IntentDonationManager not donating Shortcuts

  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.

Answered by DTS Engineer in 815309022

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

+1

I am also facing this same issue

Same here. See only one intent suggestion on the entire iOS 16 year...

Did anyone ever get any intent donations to show? Having the same issue on debug builds, about to get a build into TestFlight but @Gong it looks from your comment that you haven't seen any actions donated at all for a whole year even with app live on the store!? Did you ever get to the bottom of it? I'm wondering about submitting an TSI request...

I'm wondering about submitting an TSI request...

I did this last week, sent a request to DTS. The only thing I got back was this auto-acknowledgement:

Thanks for contacting Apple Developer Technical Support. We’ll review your request soon and advise whether your request will be managed via email or should be directed to the Developer Forums.

Some more folks with the same question here, also without an answer.

https://developer.apple.com/forums/thread/732731

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

Maybe this gonna help someone... I used INInteraction to donate intents in my app and they didn't appear in Shortcuts app, until I donated AppIntent. After donating AppIntent all previously donated INIntents showed in Shortcuts app.

IntentDonationManager not donating Shortcuts
 
 
Q