Skip to content

armgit / core

Public Imported from GitHub
0

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

iOS console : deviceId bug at app installation

William Balcaen75708a8af60c
diff --git a/console/iOS/console/TokenManager.swift b/console/iOS/console/TokenManager.swift
index f644e3e8e..96d23fbc8 100644
--- a/console/iOS/console/TokenManager.swift
+++ b/console/iOS/console/TokenManager.swift
@@ -216,7 +216,7 @@ class TokenManager:NSObject, WKScriptMessageHandler, WKUIDelegate, WKNavigationD
}
func sendDeviceId() {
- if (TokenManager.sharedInstance.deviceId != "" && TokenManager.sharedInstance.hasToken ) {
+ if (TokenManager.sharedInstance.deviceId != nil && TokenManager.sharedInstance.hasToken) {
UIApplication.shared.isNetworkActivityIndicatorVisible = true
self.getAccessToken { (accessTokenResult) in
switch accessTokenResult {