Is it possible to send Local Notifications from Endpoint Security Extension ?
When I was calling below block of code immediately after confirming that process was started
center requestAuthorizationWithOptions:options completionHandler:^(BOOL granted, NSError * _Nullable error)
center addNotificationRequest:request withCompletionHandler:^(NSError * _Nullable error)
getting below error
Requesting authorization failed with error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.usernotifications.usernotificationservice was invalidated from this process." UserInfo={NSDebugDescription=The connection to service named com.apple.usernotifications.usernotificationservice was invalidated from this process.}
Adding notification request failed with error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.usernotifications.usernotificationservice was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.usernotifications.usernotificationservice was invalidated: failed at lookup with error 3 - No such process.}
Please suggest what i'm missing here to send notification from EPS if it's possible.