Data transfer works fine in Simulator with ADB bridge, but when live device is used (tactix-delta-solar) I'm getting FAILURE_DURING_TRNSAFER error in the following Android code. Sometimes it works though and data gets all the way through to the Garmin device. How can I troubleshoot that.
fun sendToGarmin(obj: Any) { mGarminDev?.let { lifecycleScope.launch { withContext(Dispatchers.IO) { App.d(TAG, "Sending msg to Garmin") try { mConnectIQ?.sendMessage(it, mGarminApp, obj, IQSendMessageListener { dev, app, status -> if (status != ConnectIQ.IQMessageStatus.SUCCESS && status != ConnectIQ.IQMessageStatus.FAILURE_UNKNOWN) { App.d(TAG, "can't send message to Garmin: $status") mApp?.showToast("ERR: ${it.friendlyName} $status", App.MTYPE.ERROR) } }) } catch (e: Exception) { App.d(TAG, "Garmin send error: ${e.message}") } } } }