Post

Replies

Boosts

Views

Activity

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!
1
0
649
Sep ’21
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
1
Boosts
0
Views
649
Activity
Sep ’21