Post not yet marked as solved
Post marked as unsolved with 1 replies, 377 views
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!