receive(data:persistence:)

Receive a new push notification from some external system

static func receive(data: String, persistence: any Persistence) -> Notification?

Parameters

data

the raw data from the push

persistence

the persistence layer to write into

Return Value

a Notification representing the push data