0

I have tried to get a Notification Service Extension working on macOS 12.6.1 (Intel). It was not possible for me to get the Notification Service's didReceiveNotificationRequest() called. That was approved using a NSLog() that doesn't appeared in macOS log console. I have used almost the example reference code that Xcode 14.2 generates automatically for AppDelegate and NotificationService, without the generated comments, appended with additional small code parts for for remote push notification registration and authorization.

What I have done:

  • Created initial empty macOS app project
  • Add NotificationService target to project
  • Add app sandbox for NotificationService (app have it by default)
  • Grant outgoing connections for app's sandbox
  • Add push notification capability to app
  • Request notification authorization and register for remote notifications
  • Using automatic codesign for app and extension (app with, extension without provision profile)

What I expect:

  • No sluggish startup of Notification Service's Extension
  • Notification Service's didReceiveNotificationRequest() should get called

With that setup the following error occurs on the macOS log console:

  • [com.example.app] Failed to find extension inside /Applications/app.app

When adding the App Sandbox capability to the Notification Service Extension (app already had it by default) the previous error will not occur, instead the extension is found and executed, but it fails with the following errors. The sandbox for the app grants the com.apple.security.network.client permission, the sandbox for the extension has no permission grants.

  • [com.example.app.NotificationService] Extension will be killed due to sluggish startup
  • Unable to setup extension context - error: <private>
  • Async Begin using error: Error Domain=NSCocoaErrorDomain Code=4099 UserInfo={NSDebugDescription=<private>}

That's the basic header for the APNs request:

"Content-Type: application/json", "apns-topic: com.example.app"

That's the basic payload data for the APNs notification:

{ "aps" : { "mutable-content" : 1, "alert" : { "title" : "TITLE", "body" : "MSG" } }, "id" : "ID" }

That's the Notification Service code (Xcode generated without comments) NotificationService/NotificationService.m:

#import "NotificationService.h"

@interface NotificationService ()

@property (nonatomic, strong) void (^contentHandler)(UNNotificationContent *contentToDeliver);
@property (nonatomic, strong) UNMutableNotificationContent *bestAttemptContent;

@end

@implementation NotificationService

- (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(void (^)(UNNotificationContent * _Nonnull))contentHandler {
    NSLog(@"didReceiveNotificationRequest");
    self.contentHandler = contentHandler;
    self.bestAttemptContent = [request.content mutableCopy];
    
    self.bestAttemptContent.title = [NSString stringWithFormat:@"%@ [modified]", self.bestAttemptContent.title];
    
    self.contentHandler(self.bestAttemptContent);
}

- (void)serviceExtensionTimeWillExpire {
    NSLog(@"serviceExtensionTimeWillExpire");
    self.contentHandler(self.bestAttemptContent);
}

@end

That's the App Delegate code (Xcode generated without comments) app/AppDelegate.m:

#import <UserNotifications/UserNotifications.h>
#import "AppDelegate.h"

@interface AppDelegate ()


@end

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    NSLog(@"applicationDidFinishLaunching");
    UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
    [center requestAuthorizationWithOptions:(UNAuthorizationOptionAlert + UNAuthorizationOptionSound) completionHandler:^(BOOL granted, NSError * _Nullable error) {
        NSLog(@"requestAuthorizationWithOptionsCompletionHandler%@", error);
    }];
    [[NSApplication sharedApplication] registerForRemoteNotifications];
}


- (void)applicationWillTerminate:(NSNotification *)aNotification {
}


- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app {
    return YES;
}

- (void)application:(NSApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
    NSLog(@"didRegisterForRemoteNotificationsWithDeviceToken");
}


@end

Here is the whole example project: https://github.com/kochstefan/notification_service_example_macos

There's a similar problem, without a solution: https://developers.apple.com/forums/thread/693011

Do you have any hint, whats wrong here? How to get the sluggish startup away and get the Notification Service's didReceiveNotificationRequest() called?

These are the included Info.plist files inside the compiled app bundle:

/Applications/app.app/Contents/Info.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>BuildMachineOSBuild</key>
    <string>21G217</string>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleExecutable</key>
    <string>app</string>
    <key>CFBundleIdentifier</key>
    <string>com.example.app</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>app</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleSupportedPlatforms</key>
    <array>
        <string>MacOSX</string>
    </array>
    <key>CFBundleVersion</key>
    <string>1</string>
    <key>DTCompiler</key>
    <string>com.apple.compilers.llvm.clang.1_0</string>
    <key>DTPlatformBuild</key>
    <string>14C18</string>
    <key>DTPlatformName</key>
    <string>macosx</string>
    <key>DTPlatformVersion</key>
    <string>13.1</string>
    <key>DTSDKBuild</key>
    <string>22C55</string>
    <key>DTSDKName</key>
    <string>macosx13.1</string>
    <key>DTXcode</key>
    <string>1420</string>
    <key>DTXcodeBuild</key>
    <string>14C18</string>
    <key>LSMinimumSystemVersion</key>
    <string>12.6</string>
    <key>NSMainStoryboardFile</key>
    <string>Main</string>
    <key>NSPrincipalClass</key>
    <string>NSApplication</string>
</dict>
</plist>

/Applications/app.app/Contents/PlugIns/NotificationService.appex/Contents/Info.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>BuildMachineOSBuild</key>
    <string>21G217</string>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleDisplayName</key>
    <string>NotificationService</string>
    <key>CFBundleExecutable</key>
    <string>NotificationService</string>
    <key>CFBundleIdentifier</key>
    <string>com.example.app.NotificationService</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>NotificationService</string>
    <key>CFBundlePackageType</key>
    <string>XPC!</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleSupportedPlatforms</key>
    <array>
        <string>MacOSX</string>
    </array>
    <key>CFBundleVersion</key>
    <string>1</string>
    <key>DTCompiler</key>
    <string>com.apple.compilers.llvm.clang.1_0</string>
    <key>DTPlatformBuild</key>
    <string>14C18</string>
    <key>DTPlatformName</key>
    <string>macosx</string>
    <key>DTPlatformVersion</key>
    <string>13.1</string>
    <key>DTSDKBuild</key>
    <string>22C55</string>
    <key>DTSDKName</key>
    <string>macosx13.1</string>
    <key>DTXcode</key>
    <string>1420</string>
    <key>DTXcodeBuild</key>
    <string>14C18</string>
    <key>LSMinimumSystemVersion</key>
    <string>12.6</string>
    <key>NSExtension</key>
    <dict>
        <key>NSExtensionPointIdentifier</key>
        <string>com.apple.usernotifications.service</string>
        <key>NSExtensionPrincipalClass</key>
        <string>NotificationService</string>
    </dict>
</dict>
</plist>

This is the logging in the macOS log console:

32.084372   usernoted   Received push from topic (null)
32.084456   usernoted   Received push for com.example.app
32.084592   apsd    Looking up connection on peer: 60730300   found <private>
32.084656   apsd    <private> informed that <private> acknowledges incoming message with guid <private> tracingUUID (null)
32.085072   apsd    APSMessageStore - APSIncomingMessageRecordDeleteMessageForGUID <private>
32.111500   usernoted   [d <private>] <PKHost:0x7fada1831b40> Beginning discovery for flags: 0, point: com.apple.usernotifications.service
32.112430   pkd Waiting on thread <private> until Launch Services database seeding is complete.
32.151870   pkd [d <private>] Final plugin count: 1
32.152507   usernoted   [d <private>] <PKHost:0x7fada1831b40> Completed discovery. Final # of matches: 1
32.170772   runningboardd   Acquiring assertion targeting 31369 from originator [daemon<com.apple.usernoted(504)>:420] with description <RBSAssertionDescriptor| "com.apple.extension.session" ID:157-420-486030 target:31369 attributes:[
    <RBSLegacyAttribute| requestedReason:ViewService reason:ViewService flags:( AllowIdleSleep PreventTaskSuspend PreventTaskThrottleDown )>,
    <RBSAcquisitionCompletionAttribute| policy:AfterValidation>
    ]>
error 32.171273 usernoted   Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
32.171685   usernoted   [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62:m (null)] [<private>(<private>)] Ready plugins sent as euid = 504, uid = 504, personaid = -1, type = NOPERSONA, name = <unknown>
32.172147   pkd Ready plugins received as euid = 504, uid = 504, personaid = -1, type = NOPERSONA, name = <unknown>
error 32.172440 pkd could not fetch persona generation ID (Error Domain=PlugInKit Code=-1 "persona generation ID unavailable" UserInfo={NSLocalizedDescription=persona generation ID unavailable}), flushing cache
32.177722   pkd Mapped bundleID com.example.app to personal: PKDPersona: personaID: 1002, isEnterprise: NO
32.177764   pkd [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62] [<private>(<private>)] assigning to persona ID 1002
32.177946   pkd [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62] [<private>(<private>)] will be managed by runningboard
32.181078   pkd [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62] [<private>(<private>)] Allowing host pid 420 to use plugin [<private>]
32.182101   runningboardd   Launch request for xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)> is using uid 504 (divined from auid 504 euid 504)
32.182218   runningboardd   Executing launch request for xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)> (Launching extension com.example.app.NotificationService(EAFFBCF6-6452-4F26-95D7-85E2F3521D62) for host 420)
32.182295   runningboardd   Creating and launching job for: xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>
32.182979   runningboardd   <OSLaunchdJob | handle=83262928-431B-46EE-AFCF-C9A52E37DEF1>: submitExtension created a job
32.193664   runningboardd   <OSLaunchdJob | handle=83262928-431B-46EE-AFCF-C9A52E37DEF1>: start succeeded, state=2
32.194730   runningboardd   Full encoding handle <private>, with data ee8fa5d400007a9a, and pid 31386
32.194885   runningboardd   [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386] This process will be managed.
32.194941   runningboardd   Now tracking process: [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386]
32.195166   runningboardd   Calculated state for xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>: running-suspended (role: None)
32.196403   WindowServer    Hit the server for a process handle e8fa5d400007a9a that resolved to: [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386]
32.196474   WindowServer    Received state update for 31386
32.196000   runningboardd   <OSLaunchdJob | handle=83262928-431B-46EE-AFCF-C9A52E37DEF1>: monitor initial state is 2
32.196767   usernoted   [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62:m (null)] [<private>(<private>)] got pid from ready request: 31386
32.196050   runningboardd   [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386] reported to RB as running
32.196103   runningboardd   <OSLaunchdJob | handle=83262928-431B-46EE-AFCF-C9A52E37DEF1>: starting monitoring
32.196665   UIKitSystem Hit the server for a process handle e8fa5d400007a9a that resolved to: [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386]
32.197279   UIKitSystem Received state update for 31386
32.197709   runningboardd   Acquiring assertion targeting [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386] from originator [daemon<com.apple.usernoted(504)>:420] with description <RBSAssertionDescriptor| "com.apple.extension.session" ID:157-420-486031 target:31386 attributes:[
    <RBSLegacyAttribute| requestedReason:ViewService reason:ViewService flags:( AllowIdleSleep PreventTaskSuspend PreventTaskThrottleDown )>,
    <RBSAcquisitionCompletionAttribute| policy:AfterValidation>
    ]>
32.197765   runningboardd   Mutating assertion 157-420-486031 reason from ViewService to Extension because it targets an xpc service.
32.197838   runningboardd   Assertion 157-420-486031 (target:[xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386]) will be created as active
32.198406   kernel  memorystatus: set assertion priority(4) target NotificationService:31386
32.198415   runningboardd   [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386] Set jetsam priority to 4 [0] flag[1]
32.198677   kernel  memorystatus: assertion priority 4 overrides priority 0 for NotificationService:31386
32.198457   runningboardd   [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386] Resuming task.
32.198638   runningboardd   Calculated state for xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>: running-active (role: UserInteractiveNonFocal)
32.198506   runningboardd   [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386] Error 45 setting darwin role to UserInteractiveNonFocal: Operation not supported, falling back to setting priority
32.198874   runningboardd   [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386] Set darwin priority to: PRIO_DEFAULT
32.198919   runningboardd   31386 Set Darwin GPU to "deny"
error 32.199146 runningboardd   setGPURole:pid: failed due to nil IOGPU device ref
32.199271   UIKitSystem Received state update for 31386
32.199269   WindowServer    Received state update for 31386
32.204677   secinitd    NotificationService[31386]: root path for bundle "<private>" of main executable "<private>"
32.208137   usernoted   [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62:m (null)] [<private>(<private>)] acquired startup assertion
32.208549   usernoted   [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62:m (null)] [<private>(<private>)] Prepare using sent as euid = 504, uid = 504, personaid = -1, type = NOPERSONA, name = <unknown>
32.208607   usernoted   [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62] [<private>(<private>)] Sending prepareUsing to managed extension; this should launch it if not already running.
32.218369   secinitd    AppSandboxUtilRealPathForUTF8StringPath(/Users/user)
32.218441   secinitd    AppSandboxUtilRealPathForUTF8StringPath(/Applications/app.app/Contents/PlugIns/NotificationService.appex)
32.218744   secinitd    Requesting container lookup; personaid = 1002, type = DEFAULT, name = A1E43147-77C7-43B8-AEDC-E281B1DBCE00, class = 4, identifier = <private>, temp = 0, create = 1, euid = 504, uid = 504
error 32.219443 containermanagerd   failed to read /Library/Preferences/Logging/com.apple.diagnosticd.filter.plist: [1: Operation not permitted]
error 32.219619 containermanagerd   failed to read /Library/Preferences/Logging/com.apple.diagnosticd.filter.plist: [1: Operation not permitted]
32.220484   containermanagerd   stat [<private>]: exists: 1, isDirectory: 0, fsNode: <~~~>
32.220566   containermanagerd   stat [<private>]: exists: 1, isDirectory: 1, fsNode: (null)
32.220757   containermanagerd   [504] command=0, client=<<~~~>, u=<504/20/~~/0/1002>, uid=504, pid=31386, sandboxed=0, platform=1 (1/1/0) [(null)]>, error=(none)
32.221010   secinitd    container_create_or_lookup_for_platform: success
32.221105   secinitd    Requesting group container lookup; personaid = 1002, type = DEFAULT, name = A1E43147-77C7-43B8-AEDC-E281B1DBCE00, identifier = <private>, euid = 504, uid = 504
32.221484   containermanagerd   [504] command=13, client=<<~~~>, u=<504/20/~~/0/1002>, uid=504, pid=31386, sandboxed=0, platform=1 (1/1/0) [(null)]>, error=(none)
32.221602   secinitd    container_create_or_lookup_app_group_paths_for_platform: success
32.222383   containermanagerd   stat [<private>]: exists: 1, isDirectory: 0, fsNode: <~~~>
32.222562   containermanagerd   [504] command=7, client=<<~~~>, u=<504/20/~~/0/1002>, uid=504, pid=417, sandboxed=1, platform=1 (1/1/1) [(null)]>, error=(none)
32.222837   secinitd    container_copy_info: success
32.223037   secinitd    container_copy_path: success
32.223157   secinitd    AppSandboxUtilRealPathForUTF8StringPath(/Users/user/Library/Containers/com.example.app.NotificationService/Data)
32.223932   secinitd    AppSandboxUtilRealPathForUTF8StringPath(/var/folders/38/p85q9p6n2t39_5rpn2tn0yqh0000gr/T/.AddressBookLocks)
32.224586   secinitd    AppSandboxUtilRealPathForUTF8StringPath(/var/folders/38/p85q9p6n2t39_5rpn2tn0yqh0000gr/T/.CalendarLocks)
32.224683   secinitd    AppSandboxUtilRealPathForUTF8StringPath(/var/folders/38/p85q9p6n2t39_5rpn2tn0yqh0000gr/T/)
32.224756   secinitd    AppSandboxUtilRealPathForUTF8StringPath(/var/folders/38/p85q9p6n2t39_5rpn2tn0yqh0000gr/0/)
32.224824   secinitd    AppSandboxUtilRealPathForUTF8StringPath(/var/folders/38/p85q9p6n2t39_5rpn2tn0yqh0000gr/C/)
32.224893   secinitd    AppSandboxUtilRealPathForUTF8StringPath(/Applications/app.app/Contents/PlugIns/NotificationService.appex)
32.225305   secinitd    NotificationService[31386]: AppSandbox request successful
32.227344   NotificationService Requesting container lookup; personaid = 1002, type = DEFAULT, name = A1E43147-77C7-43B8-AEDC-E281B1DBCE00, class = 4, identifier = <private>, temp = 0, create = 0, euid = 504, uid = 504
32.229796   containermanagerd   Using client sandbox path [<~~~>]; metadata = <<~~~>(2);<504/20/~~/0/1002>;u29118AC3-B030-4D3F-8785-B828D5164A8E;pcom.example.app.NotificationService;dp-1;uma(null);L0>
32.229945   containermanagerd   [504] command=0, client=<<~~~>, u=<504/20/~~/0/1002>, uid=504, pid=31386, sandboxed=1, platform=1 (1/1/0) [<~~~>]>, error=(none)
32.230195   NotificationService container_create_or_lookup_for_platform: success
32.233772   NotificationService Hello, I'm launching as euid = 504, uid = 504, personaid = 1002, type = DEFAULT, name = <private>
32.242950   NotificationService Initializing connection
32.243046   NotificationService Removing all cached process handles
32.243108   NotificationService Sending handshake request attempt #1 to server
32.243148   NotificationService Creating connection to com.apple.runningboard
32.243455   runningboardd   Incoming connection from 31386, user 504/504
32.243824   runningboardd   Setting client for [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386] as ready
32.243890   runningboardd   Received handshake request from 31386 with 0 assertion descriptors
32.243957   runningboardd   Handshake successful with 31386; sending response
32.244468   NotificationService Handshake succeeded
32.244534   NotificationService Identity resolved as xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>
error 32.245045 NotificationService Bootstrapping; external subsystem UIKit_PKSubsystem refused setup
32.245102   NotificationService Bootstrapping; Bootstrap complete. Ready for handshake from host.
32.245501   kernel  memorystatus: assertion priority 4 overrides priority 3 for NotificationService:31386
32.248600   NotificationService [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62] [(null)((null))] Prepare received as euid = 504, uid = 504, personaid = 1002, type = DEFAULT, name = <private>
32.249352   NotificationService [u 233E7C01-56FE-4C3A-BE3A-88EAB5046CCB] [<private>(<private>)] Set sole personality.
32.250538   kernel  memorystatus: assertion priority 4 overrides priority 0 for NotificationService:31386
32.250732   usernoted   [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62:m (null)] [<private>(<private>)] Begin using sent as euid = 504, uid = 504, personaid = -1, type = NOPERSONA, name = <unknown>
32.250874   kernel  memorystatus: assertion priority 4 overrides priority 3 for NotificationService:31386
32.250931   NotificationService [u 233E7C01-56FE-4C3A-BE3A-88EAB5046CCB] [<private>(<private>)] Begin using received as euid = 504, uid = 504, personaid = 1002, type = DEFAULT, name = <private>
32.251226   kernel  memorystatus: assertion priority 4 overrides priority 0 for NotificationService:31386
32.251533   usernoted   [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62:m (null)] [<private>(<private>)] plugin loaded and ready for host
32.252243   runningboardd   Acquiring assertion targeting [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386] from originator [daemon<com.apple.usernoted(504)>:420] with description <RBSAssertionDescriptor| "com.apple.extension.session" ID:157-420-486032 target:31386 attributes:[
    <RBSLegacyAttribute| requestedReason:ViewService reason:ViewService flags:( AllowIdleSleep PreventTaskSuspend PreventTaskThrottleDown )>,
    <RBSAcquisitionCompletionAttribute| policy:AfterValidation>
    ]>
32.252311   runningboardd   Mutating assertion 157-420-486032 reason from ViewService to Extension because it targets an xpc service.
32.252389   runningboardd   Assertion 157-420-486032 (target:[xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386]) will be created as active
32.253567   kernel  memorystatus: assertion priority 4 overrides priority 3 for NotificationService:31386
32.253715   kernel  memorystatus: assertion priority 4 overrides priority 0 for NotificationService:31386
32.253310   usernoted   [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62:m (null)] [<private>(<private>)] invalidating startup assertion
32.253638   runningboardd   Invalidating assertion 157-420-486031 (target:[xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386]) from originator [daemon<com.apple.usernoted(504)>:420]
32.253915   usernoted   +[NSExtensionContext _allowedItemPayloadClasses] not implemented. Setting the allowed payload classes to <private>
32.388542   kernel  connect() - failed necp_set_socket_domain_attributes
32.388694   kernel  connect() - failed necp_set_socket_domain_attributes
32.461697   kernel  uipc_accept: peer disconnected unp_gencnt 48693832
32.462486   kernel  uipc_accept: peer disconnected unp_gencnt 48693836
32.562936   configd RTADV en0: all autoconf addresses detached/deprecated
32.563843   configd AUTOMATIC-V6 en0: publish success { IPv6, DNS, DHCPv6 } [PLATDiscovery]
32.873631   remoting_me2me_host [0404/011332.873562:WARNING:host_control_dispatcher.cc(131)] Unknown control message received.
33.461092   kernel  uipc_accept: peer disconnected unp_gencnt 48693840
33.461731   kernel  uipc_accept: peer disconnected unp_gencnt 48693844
error 34.170361 usernoted   [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62:m (null)] [<private>(<private>)] Connection to plugin interrupted while in use.
34.170465   usernoted   [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62:m (null)] [<private>(<private>)] all extension sessions ended
error 34.170922 usernoted   [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62:m (null)] [<private>(<private>)] Connection to plugin invalidated while in use.
34.171226   usernoted   [u EAFFBCF6-6452-4F26-95D7-85E2F3521D62:m (null)] [<private>(<private>)] Emptying requests set
error 34.171314 usernoted   [com.example.app.NotificationService] Extension will be killed due to sluggish startup
34.176362   runningboardd   83262928-431B-46EE-AFCF-C9A52E37DEF1 monitor: got an update with state 4
34.176435   runningboardd   [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386] termination reported by launchd (2, 9, 9)
34.176512   runningboardd   Removing process: [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386]
34.176700   runningboardd   XPC connection invalidated: [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386]
34.176764   runningboardd   Removing assertions for terminated process: [xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>:31386]
34.176858   runningboardd   Removed last relative-start-date-defining assertion for process xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>
34.177937   runningboardd   Calculated state for xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>: none (role: None)
34.178491   UIKitSystem Received state update for 31386
34.178694   WindowServer    Received state update for 31386
34.178428   runningboardd   Calculated state for xpcservice<com.example.app.NotificationService([daemon<com.apple.usernoted(504)>:420])(504)>: none (role: None)
error 34.179006 usernoted   Unable to setup extension context - error: <private>
error 34.179522 usernoted   Async Begin using error: Error Domain=NSCocoaErrorDomain Code=4099 UserInfo={NSDebugDescription=<private>}
34.179466   UIKitSystem Received state update for 31386
34.179486   WindowServer    Received state update for 31386
error 34.186798 runningboardd   RBSStateCapture remove item called for untracked item <RBProcessMonitorObserver| qos:0 qos:(null) configs:{
    }>
34.279997   NotificationCenter  [com.apple.private.nc.dnd:E2100D8F-B47F-4D61-8F7A-CA066B99E92E] Resolving behavior for event, details=<DNDMutableClientEventDetails: 0x600001551720; identifier: '4C1EA148-70D2-4682-824B-8EA9C4330D5B'; bundleIdentifier:: com.example.app; type: Default; urgency: Default; sender: (null); threadIdentifier: (null); notifyAnyway: 0; behavior: Default> eventBehavior: <DNDClientEventBehavior: 0x7f95c60532c0; eventDetails: <DNDClientEventDetails: 0x7f95c604ff90; identifier: '4C1EA148-70D2-4682-824B-8EA9C4330D5B'; bundleIdentifier:: com.example.app; type: Default; urgency: Default; sender: (null); threadIdentifier: (null); notifyAnyway: 0; behavior: Default>; interruptionSuppression: silence; resolutionReason: display shared; activeModeUUID: (null)>; clientIdentifier: 'com.apple.nc.donotdisturb.user-toggles.preload'; outcome: suppressed; reason: display shared>
34.284449   NotificationCenter  [com.apple.private.nc.dnd:E2100D8F-B47F-4D61-8F7A-CA066B99E92E] Resolved event, details=<DNDMutableClientEventDetails: 0x600001551720; identifier: '4C1EA148-70D2-4682-824B-8EA9C4330D5B'; bundleIdentifier:: com.example.app; type: Default; urgency: Default; sender: (null); threadIdentifier: (null); notifyAnyway: 0; behavior: Default> behavior=<DNDClientEventBehavior: 0x6000038d6100; eventDetails: <DNDClientEventDetails: 0x600001526d00; identifier: '4C1EA148-70D2-4682-824B-8EA9C4330D5B'; bundleIdentifier:: com.example.app; type: Default; urgency: Default; sender: (null); threadIdentifier: (null); notifyAnyway: 0; behavior: Default>; interruptionSuppression: silence; resolutionReason: display shared; activeModeUUID: (null)>
34.284750   NotificationCenter  Resolved interruption suppression for com.example.app as silence
34.292444   NotificationCenter  [com.example.app:512774BF] updating existing notification with content from 512774BF

Thanks

0 Answers0