Hi
Im making my first Watch app where I send a text from my Android phone to my Fenix 5x when pressing a button at the phone app.
Im sending using the method below
public void SendToGarmin(String message) {
try {
mConnectIQ.sendMessage(mDevice, mMyApp, message, new ConnectIQ.IQSendMessageListener() {
@Override
public void onMessageStatus(IQDevice device, IQApp app, ConnectIQ.IQMessageStatus status) {
Toast.makeText(MainActivity.this, status.name(), Toast.LENGTH_SHORT).show();
}
});
} catch (InvalidStateException e) {
Toast.makeText(this, "ConnectIQ is not in a valid state", Toast.LENGTH_SHORT).show();
} catch (ServiceUnavailableException e) {
Toast.makeText(this, "ConnectIQ service is unavailable. Is Garmin Connect Mobile installed and running?", Toast.LENGTH_LONG).show();
}
}
IQDevice in onMessageStatus(IQDevice device, IQApp app, ConnectIQ.IQMessageStatus status) is an unknown device and status is FAILURE_DURING_TRANSFER
Nothing appears on the watch.
Is there any link (key) between the apps on the watch/phone or will the watch app consume messages from any phone app sending messages?
/Lars