Skip to content

Commit

Permalink
Update PushNotifications.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jblanked committed Jun 22, 2024
1 parent 0396753 commit 8d7e68b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/PushNotifications.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import UIKit
public class Easybase
{
private let client: SupabaseClient
public var title = "New Message"

public init(supabaseURL: String, supabaseKey: String)
{
Expand Down Expand Up @@ -199,9 +200,9 @@ public class Easybase

}

private func showNotification(_ message: String,_ title: String = "New Message") {
private func showNotification(_ message: String) {
let content = UNMutableNotificationContent()
content.title = title
content.title = self.title
content.body = message
content.sound = UNNotificationSound.default

Expand Down

0 comments on commit 8d7e68b

Please sign in to comment.