Hey! I need watch app which will be send HR and SpO2 data to my android companion app.
So I am trying Comm example on Simulator and real Andriod device via adb.
After starting android app I click 'Start' (adb Connection) in Simulator (with running watch app on it)
Comm app on Android shows me CONNECTED state on simulator device.
onApplicationInfoReceived method get me IQApp object but with empty name and unknown status.
After that onOpenApplicationResponse callback method get me APP_IS_NOT_INSTALLED (I checked app id in manifest and android app and they match)
OK, move it in background. After repeating above steps and send message from phone I get crash in watch app in onPhone method: Details: Failed invoking <symbol> because msg.data is null
Moreover I need insert INTERNET permission for android app for preventing crash.
So I have next questions:
2. Where I could find working example of companion communication or how to fix this one?
3. How to test companion communication on simulator or do I need real device?
Thanks!
Upd: In additional I tried to send message from watch app to android and it works well.