app crash when using Focus Status Center to request authentication

I didn't add the intentsExtension and intentsUIExtension in my app. I added the communication notifications, time sensitive notifications and push notifications capabilities. I tried to call [FocusStatus.defaultCenter requestAuthorizationWithCompletionHandler:nil]; from my main app. The app would crash when xCode executed the function. Even I provide a completion handler block as input of the function, the app would still crash. (1) should I add two of the Intent extensions in order to use this function? (2) If yes, should I call this ^ function inside these two extensions? and can I call it in the main app? (3) should I call the function asynchronously? Thanks!

Replies

Please provide the focus status usage description in the Info.plist.

Key: Privacy - Focus Status Usage Description

Value: String description

Once that is provided, UserNotifications authorization options must be allowed and Communication Notifications entitlement / capability be present in the main app's target for FocusStatus to work as intended.