macOS
Same package and calls as iOS; macOS 12+. Register from your NSApplicationDelegate:
func applicationDidFinishLaunching(_ notification: Notification) { do { try MailPidgeLifecycle.configure(clientCredential: "mpck_…", appId: "pidgefit-mac") } catch { assertionFailure("MailPidge configuration is invalid: \(error)") } NSApplication.shared.registerForRemoteNotifications()}
func application(_ application: NSApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { Task { try await MailPidgeLifecycle.registerPushToken(deviceToken) }}| macOS | |
|---|---|
| Bundle id | The Mac app’s own, on the client key |
| Distribution | Mac App Store or Developer ID |
| Live Activities | Not available |