Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fix for buttons that shouldn't open the app

Michael Rademakereef4edb7f0e9
diff --git a/console/iOS/ORLib/ORLib.podspec b/console/iOS/ORLib/ORLib.podspec
index c50c7a567..e2a999326 100644
--- a/console/iOS/ORLib/ORLib.podspec
+++ b/console/iOS/ORLib/ORLib.podspec
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.name = "ORLib"
s.summary = "The OpenRemote library to create console apps."
s.requires_arc = true
- s.version = '1.1.2'
+ s.version = '1.1.3'
s.authors = 'OpenRemote'
s.homepage = "http://www.openremote.io"
s.source = { :git => 'https://github.com/openremote/openremote.git', :tag => 'cocoapod' + s.version.to_s }
diff --git a/console/iOS/ORLib/ORLib/ORNotificationService.swift b/console/iOS/ORLib/ORLib/ORNotificationService.swift
index 29767a260..7d904ebe1 100644
--- a/console/iOS/ORLib/ORLib/ORNotificationService.swift
+++ b/console/iOS/ORLib/ORLib/ORNotificationService.swift
@@ -76,7 +76,7 @@ open class ORNotificationService: UNNotificationServiceExtension, URLSessionDele
bestAttemptContent.userInfo[DefaultsKey.dataKey] = action.data ?? "null"
notificationActions.append(UNNotificationAction(identifier: "openURLAction", title: button.title, options: UNNotificationActionOptions.foreground))
} else {
- notificationActions.append(UNNotificationAction(identifier: "declineAction", title: button.title, options: UNNotificationActionOptions.foreground))
+ notificationActions.append(UNNotificationAction(identifier: "declineAction", title: button.title, options: UNNotificationActionOptions.destructive))
}
}