I have not tested whether this can be done in an NSE. Various extensions have differing sandbox limitations on what functionality would be enabled. That's why I suggested to try it out yourselves as an experiment.
While you won't be able to send actual push notifications using a free account, you can use a JSON file containing your payload in the simulator. This will still let you test your AlarmKit interaction inside the NSE, and at the very least let you know if this is a viable architecture to consider.
You would create a JSON file as such:
{
"Simulator Target Bundle": "com.airraidapp.test",
"aps": {
"alert": {
"title": "Airraid Update",
"body": "Airraids are over"
},
"mutable-content": 1
}
}
and call it airraid.apns (or whatever you want, just match your BundleID in the payload to your app)
And then either drag and drop this onto the simulator to simulate a push, or use xcrun from a Terminal.
xcrun simctl push --help
shows the usage.
Good luck!
-- S.Beck -- 7strikes.dev
Topic:
App & System Services
SubTopic:
Notifications