Always return 0 in getDeviceStatus

Former Member
Former Member
Hi!
I'm developing an app which requires iOS app. In Eclipse, my connect IQ app version is 1.0.0.
In ios, when I get the garmin connect version with:

let myIQApp = IQApp(uuid: IQAppUUID, store: IQAppStoreUUID, device: device)
let deviceStatus = ConnectIQ.sharedInstance().getDeviceStatus(device)
if deviceStatus == .connected {
ConnectIQ.sharedInstance().getAppStatus(myIQApp, completion: { (status) in
if let appStatus = status {
print("App installed \(appStatus.isInstalled)" + " version \(appStatus.version)")
...

I'm always getting "App installed true version 0"
Also, I don't know how to obtain a string like "1.0.0" since the variable IQAppStatus.version is uint16_t
Someone to help me with this. Thanks!
  • I'm pretty sure the version field you're looking at is the app version from the ConnectIQ store. This is 0 for an app until it has been uploaded to the store and digitally signed. The first upload would get version 1, second would get a 2, ...

    I understand that you're trying to access the version of the app that is specified in the manifest editor. Unfortunately I haven't even dabbled in the mobile space, so I don't know anything about how to access that data.
  • Former Member
    Former Member
    Thanks Travis