Cloud Infrastructure Setup
Nucleic-Session: 5AC77C62-A729-42E5-A368-1142C3B9E695
This commit is contained in:
@@ -12,6 +12,9 @@ struct NucleicRemoteApp: App {
|
|||||||
.environmentObject(store)
|
.environmentObject(store)
|
||||||
.onAppear {
|
.onAppear {
|
||||||
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).
|
// Anonymous, opt-out, once-a-day DAU heartbeat (docs/CLOUD_INFRA.md §4).
|
||||||
Task { await HeartbeatReporter.reportIfDue() }
|
Task { await HeartbeatReporter.reportIfDue() }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user