diff --git a/NucleicRemote/NucleicRemote/NucleicRemoteApp.swift b/NucleicRemote/NucleicRemote/NucleicRemoteApp.swift index fb3aa84..a41ede2 100644 --- a/NucleicRemote/NucleicRemote/NucleicRemoteApp.swift +++ b/NucleicRemote/NucleicRemote/NucleicRemoteApp.swift @@ -12,6 +12,9 @@ struct NucleicRemoteApp: App { .environmentObject(store) .onAppear { store.onAppear() + // Surface the notifications prompt + register for APNS. The token rides along + // in the sync Hello; the relay uses it to wake the phone for approvals (§3). + PushRegistrar.shared.requestAuthorizationAndRegister() // Anonymous, opt-out, once-a-day DAU heartbeat (docs/CLOUD_INFRA.md §4). Task { await HeartbeatReporter.reportIfDue() } }