mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
feat: Enable APNS registration + notification delivery in macOS apps (#33574)
This commit is contained in:
@@ -22,6 +22,7 @@ export const browserModuleList: ElectronInternal.ModuleEntry[] = [
|
||||
{ name: 'Notification', loader: () => require('./notification') },
|
||||
{ name: 'powerMonitor', loader: () => require('./power-monitor') },
|
||||
{ name: 'powerSaveBlocker', loader: () => require('./power-save-blocker') },
|
||||
{ name: 'pushNotifications', loader: () => require('./push-notifications') },
|
||||
{ name: 'protocol', loader: () => require('./protocol') },
|
||||
{ name: 'safeStorage', loader: () => require('./safe-storage') },
|
||||
{ name: 'screen', loader: () => require('./screen') },
|
||||
|
||||
3
lib/browser/api/push-notifications.ts
Normal file
3
lib/browser/api/push-notifications.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
const { pushNotifications } = process._linkedBinding('electron_browser_push_notifications');
|
||||
|
||||
export default pushNotifications;
|
||||
Reference in New Issue
Block a user