Skip to content

Commit

Permalink
if auto is false upon init, make it false. If undefined or true, set …
Browse files Browse the repository at this point in the history
…it to true.

closes #12
  • Loading branch information
evolunis-ws committed Oct 13, 2022
1 parent 29d5093 commit 89d363d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/NotificationServiceExtension/NotificationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class NotificationService: UNNotificationServiceExtension {
let apiKey = group?.string(forKey: "apiKey") as? String ?? ""
let authValid = (group?.string(forKey: "isAuthValid") as? String) == "true" ? true:false
let devicesIds = group?.string(forKey: "devicesIds") as? String ?? "[]"
let autoToggle = (group?.string(forKey: "autoToggle") as? String) == "true" ? true:false
let autoToggle = (group?.string(forKey: "autoToggle") as? String) == "false" ? false:true
let showNotif = (group?.string(forKey: "showNotifs") as? String) == "true" ? true:false

struct Device: Codable {
Expand Down

0 comments on commit 89d363d

Please sign in to comment.