Trigger Notifications from Background Assets Extension

Is it possible to trigger Local Notifications from Background Assets Extension to update users that Assets are downloaded successfully ?

While I was calling

UNUserNotificationCenter.current().requestAuthorization
UNUserNotificationCenter.current().add

getting below error

Requesting authorization failed with error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.usernotifications.usernotificationservice was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.usernotifications.usernotificationservice was invalidated: failed at lookup with error 159 - Sandbox restriction.}
Adding notification request 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.}

Can you please suggest any other alternative to update Users after a download has been completed successfully?

Answered by Systems Engineer in 747050022

The extension runs in a very tight sandbox to prevent use cases outside of its intended design. Therefore the extension is only permitted for scheduling/managing downloads with Background Assets.

Accepted Answer

The extension runs in a very tight sandbox to prevent use cases outside of its intended design. Therefore the extension is only permitted for scheduling/managing downloads with Background Assets.

Trigger Notifications from Background Assets Extension
 
 
Q