Преглед изворни кода

resolve allowNotify for in-app messages

kskandis пре 1 година
родитељ
комит
d65104c2b6

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

@@ -21,7 +21,7 @@ enum MessageSubtype: String {
 struct MessageContent {
 struct MessageContent {
     var content: String
     var content: String
     var type: MessageType = .info
     var type: MessageType = .info
-    var subtype: MessageSubtype = .misc
+    var subtype: MessageSubtype = .algorithm
     var title: String = ""
     var title: String = ""
     var useAPN: Bool = true
     var useAPN: Bool = true
     var trigger: UNNotificationTrigger? = nil
     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",
                 "The app Garmin Connect must be installed to use for Trio.\n Go to App Store to download it",
                 comment: ""
                 comment: ""
             ),
             ),
-            type: .warning
+            type: .warning,
+            subtype: .misc,
+            title: NSLocalizedString("Garmin is not available", comment: "")
         )
         )
         router.alertMessage.send(messageCont)
         router.alertMessage.send(messageCont)
     }
     }