Skip to content

armgit / core

Public Imported from GitHub
0

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

Formatting

Eric Bariaux9bd593f431b0
diff --git a/console/iOS/console/AppDelegate.swift b/console/iOS/console/AppDelegate.swift
index 11382f467..6a96306a5 100644
--- a/console/iOS/console/AppDelegate.swift
+++ b/console/iOS/console/AppDelegate.swift
@@ -105,7 +105,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
switch response.actionIdentifier {
case ActionType.ACTION_DEEP_LINK :
if let urlToOpen = response.notification.request.content.userInfo["appUrl"] { // until now we are considering anchor name (without the #)
- guard let urlRequest = URL(string:String(format: "https://%@/%@%@", Server.hostURL, Server.navigationPath,urlToOpen as! String)) else { return }
+ guard let urlRequest = URL(string:String(format: "https://%@/%@%@", Server.hostURL, Server.navigationPath, urlToOpen as! String)) else { return }
(self.window?.rootViewController as! ViewController).loadUrl(url:urlRequest)
NSLog("Action asked : %@",response.actionIdentifier)
}
@@ -113,9 +113,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
NSLog("Action asked : %@",response.actionIdentifier)
if let actions = response.notification.request.content.userInfo["actions"] {
- assetId = (actions as! Dictionary<String,String>)["assetId"]!
- attributeName = (actions as! Dictionary<String,String>)["attributeName"]!
- rawJson = (actions as! Dictionary<String,String>)["rawJson"]!
+ assetId = (actions as! Dictionary<String,String>)["assetId"]!
+ attributeName = (actions as! Dictionary<String,String>)["attributeName"]!
+ rawJson = (actions as! Dictionary<String,String>)["rawJson"]!
}
(self.window?.rootViewController as! ViewController).updateAssetAttribute(assetId : assetId, attributeName : attributeName, rawJson : rawJson)