Parcourir la source

resolve allowNotify for in-app messages

kskandis il y a 1 an
Parent
commit
d65104c2b6

+ 1 - 1
FreeAPS/Sources/Router/Router.swift

@@ -21,7 +21,7 @@ enum MessageSubtype: String {
 struct MessageContent {
     var content: String
     var type: MessageType = .info
-    var subtype: MessageSubtype = .misc
+    var subtype: MessageSubtype = .algorithm
     var title: String = ""
     var useAPN: Bool = true
     var trigger: UNNotificationTrigger? = nil

+ 3 - 1
FreeAPS/Sources/Services/WatchManager/GarminManager.swift

@@ -160,7 +160,9 @@ extension BaseGarminManager: IQUIOverrideDelegate {
                 "The app Garmin Connect must be installed to use for Trio.\n Go to App Store to download it",
                 comment: ""
             ),
-            type: .warning
+            type: .warning,
+            subtype: .misc,
+            title: NSLocalizedString("Garmin is not available", comment: "")
         )
         router.alertMessage.send(messageCont)
     }