I have a watch app that works well with its Android companion app.
Now, I'm trying to develop a companion app for iOS but I'm not able to get the watch app to communicate with the iOS counterpart. I'm starting from the documentation and the example that come with the iOS SDK found here: https://developer.garmin.com/downloads/connect-iq/sdks/connectiq-mobile-sdk-ios-1.3.zip
There are slight differences between what is stated in the documentation and what is available in the SDK itself (and implemented in the example). For instance, the signature of the IQApp constructor - in the docs it's given as:
IQApp *app = [IQApp appWithUUID:uuid device:device];
But in the SDK, and in the example, it is actually:
[IQApp appWithUUID:[[NSUUID alloc] initWithUUIDString:APP_ID] storeUuid:[[NSUUID alloc] initWithUUIDString:APP_ID_STORE] device:device];
Since my iOS companion app correctly finds the connected devices through Garmin Connect, but then fails to communicate with my watch app, I'm guessing the problem might be the way I instantiate the IQApp. It's simply not getting the messages sent from the watch app.
I use only the APP_ID which is defined in the manifest.xml of my watch app like this:
<iq:application entry="MyAppName" id="16B5C62BE4BD4F478F457A2F78B0EB95" launcherIcon="@Drawables.LauncherIcon" name="@Strings.AppName" type="watch-app">
And I don't know what to include as APP_ID_STORE, and if that parameter is crucial when establishing the watch app - companion app communication?
I tried to instantiate the IQApp as below, but still no success at establishing the communication:
[IQApp appWithUUID:[[NSUUID alloc] initWithUUIDString:APP_ID] storeUuid:[NSUUID UUID] device:device];
What else could be causing the problem?