From a2ab8830351652a470601ce04d86230f182033ea Mon Sep 17 00:00:00 2001 From: Nucleic Date: Fri, 26 Jun 2026 15:35:04 -0700 Subject: [PATCH] Cloud Infrastructure Setup Nucleic-Session: 5AC77C62-A729-42E5-A368-1142C3B9E695 --- NucleicRemote/NucleicRemote/NucleicRemoteApp.swift | 3 +++ 1 file changed, 3 insertions(+) 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() } }