NotificationExtensionTest icon indicating copy to clipboard operation
NotificationExtensionTest copied to clipboard

Doesn't seem to work anymore?

Open avaidyam opened this issue 9 years ago • 2 comments

I've tried to log issues, and I'm getting the following:

NotificationCenter[63054]: Extension <NSExtension: 0x7fb533c031d0> {id = com.hamzasood.NotificationTesting.BannerInterface} not valid

avaidyam avatar Dec 14 '15 09:12 avaidyam

Getting the same thing. Maybe Apple is only allowing their own bundle ids to be used as endpoints? If this is the case, @hamzasood, how could you find out which bundle ids are valid?

Bogidon avatar Mar 22 '16 02:03 Bogidon

@Bogidon Funny, months later, I figured out why this wouldn't work. Add com.apple.private.notification-extension.custom as YES to the entitlements file and it'll attempt to load the extension and die miserably... I now have a notification on-screen that won't go away.

@hamzasood

EDIT: Here's why:

6/21/16 6:58:51.647 PM taskgated[137]: killed com.hamzasood.NotificationTesting.BannerInterface[pid 53531] because its use of the com.apple.private.notification-extension.custom entitlement is not allowed (error code -67050)

EDIT again: Using SIMBL to swizzle -[NCRemotePlugInManager _valideExtension:] to permanently return YES would do the trick.

avaidyam avatar Jun 21 '16 22:06 avaidyam