iosios13siriusernotifications

iOS 13: Announce messages with Siri


I want to implement the "announce messages with Siri" feature for my own app. I haven't seen any app that is able to do it except for Messages from Apple. So I don't know if its already available. Apple announced it without any limitations explicit and mentioned that everyone will be able to adopt it.

How do I get Siri announcements for incoming notifications working?

I requested the permissions and can’t find anything else in the documentation. It also won’t show up in the settings app.

enter image description here

For reference Apples WWDC 2019 Keynote (56:00 - 56:40):

https://youtu.be/psL_5RIBqnY?t=3360


Solution

  • As per Apple's documentation:

    To have messages automatically heard by a user wearing AirPods, you must implement both INSearchForMessagesIntent and INSendMessageIntent. Add announcement to the options when calling requestAuthorization(options:completionHandler:). Finally, add allowAnnouncement to the category option and INSearchForMessagesIntent to the category intent identifier.

    In summary, adding the announcement option won't magically start reading your push notifications via AirPods. The functionality only works alongside Siri's support for messaging apps. I would advise against adding the Siri functionality to a non-messaging app as you are likely to be rejected.