IntentTimelineProvider `recommendations()` not being called

Hi!

I'm currently trying to implement lock screen widgets for iOS 16 and my app requires the new func recommendations() -> [IntentRecommendation<Self.Intent>] function of the IntentTimelineProvider being called, because the widget is configureable. I followed in my implementation the Emoji Rangers example.

However, I've debugged my app as well as the Emoji Rangers example project on device, but this function is never being called. What should trigger this? What is required for the function to being called?

  • Ok, fixed an Xcode Beta bug (that fixed the Lock Screen in the simulator) and now I found the configuration view for Lock Screen widgets: you have to touch the widget once it is placed on the Lock Screen. The recommendations function isn‘t necessary for these widgets at all - and therefore it‘s never been called. Problem solved :P

Add a Comment