Add push notifications

This commit is contained in:
Christoph Hagen
2025-02-18 22:05:19 +01:00
parent de6f474aea
commit 66a40e52a0
9 changed files with 285 additions and 4 deletions

View File

@ -0,0 +1,19 @@
struct WebNotification {
/// The title of the notification
/// - Note: Not supported on Safari for iOS
let title: String
/// The main content/message
let body: String
init(title: String, body: String) {
self.title = title
self.body = body
}
}
extension WebNotification: Codable {
}