Add push notifications
This commit is contained in:
19
CHDataManagement/Notifications/WebNotification.swift
Normal file
19
CHDataManagement/Notifications/WebNotification.swift
Normal 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 {
|
||||
|
||||
}
|
Reference in New Issue
Block a user