Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trigger UNNotificationServiceExtension on Simulator via Xcode 11.4 push feature

Xcode 11.4 (beta) allows developers to trigger push notifications on the simulator. I'm currently doing this via command-line using:

xcrun simctl push [device] [my.bundle.identifier] payload.apns

However I also have some UNNotificationServiceExtension that loads an image from an external URL given in a custom field of the payload. The image is then displayed in the notification popup. Unfortunately this extension is never called using the given command-line.

I also tried to use the bundle identifier of the extension in the command-line, but that just doesn't do anything.

I am aware that Xcode 11.4 is still in its first beta, but did anyone discover a way to trigger a notification service extension using this new feature?

like image 976
Jerrot Avatar asked Feb 10 '20 16:02

Jerrot


1 Answers

Certain kinds of notifications are not currently supported, including service extensions and VoIP.

like image 126
russbishop Avatar answered Sep 18 '22 12:09

russbishop