How to integrate with MacOS Native Push Notification API?


I want my app to be able to receive push notifications even when the application is closed, much like the way Messages works. I know there’s a native push notification api for Mac and I’m assuming it works much in the same way the iOS push notification api works. Is there any way I can use this in Electron?