Watch to Companion App Communication Error

I am trying to send a message from vivoactive to a companion app running on Android. I am getting same error when i run the sample project Comm thats is available with SDK

in C:\Skumar\connectiq-sdk-win-1.1.0\samples\Comm\source\Comm.mc (onMenuItem:110)
in C:\Skumar\connectiq-sdk-win-1.1.0\samples\Comm\source\Comm.mc (onMenuItem:110)
TVM ERROR:
Communications Error
Failed invoking <symbol>


Here is the code
class MenuInput extends Ui.MenuInputDelegate
{
var cnt = 0;
function onMenuItem(item)
{
var listener = new CommListener();

if( item == :hello ) {
Comm.transmit("Hello World.", null, listener );
}
else if( item == :trap ) {
Comm.transmit( "IT'S A TRAP!", null, listener );
}
else if( item == :garmin ) {
Comm.transmit( "ConnectIQ", null, listener );
}
}
}

class CommListener extends Comm.ConnectionListener
{
function onComplete()
{
System.println( "Transmit Complete" );
}

function onError()
{
System.println( "Transmit Failed" );
}
}


The communication works fine when i am running it on the simulator.
Software Versions
SDK: 1.1.1
Firmware: V2.70

Has anyone faced this issue?
  • Former Member
    Former Member over 9 years ago
    I am trying to send a message from vivoactive to a companion app running on Android. I am getting same error when i run the sample project Comm thats is available with SDK

    in C:\Skumar\connectiq-sdk-win-1.1.0\samples\Comm\source\Comm.mc (onMenuItem:110)
    in C:\Skumar\connectiq-sdk-win-1.1.0\samples\Comm\source\Comm.mc (onMenuItem:110)
    TVM ERROR:
    Communications Error
    Failed invoking <symbol>


    Here is the code
    class MenuInput extends Ui.MenuInputDelegate
    {
    var cnt = 0;
    function onMenuItem(item)
    {
    var listener = new CommListener();

    if( item == :hello ) {
    Comm.transmit("Hello World.", null, listener );
    }
    else if( item == :trap ) {
    Comm.transmit( "IT'S A TRAP!", null, listener );
    }
    else if( item == :garmin ) {
    Comm.transmit( "ConnectIQ", null, listener );
    }
    }
    }

    class CommListener extends Comm.ConnectionListener
    {
    function onComplete()
    {
    System.println( "Transmit Complete" );
    }

    function onError()
    {
    System.println( "Transmit Failed" );
    }
    }


    The communication works fine when i am running it on the simulator.
    Software Versions
    SDK: 1.1.1
    Firmware: V2.70

    Has anyone faced this issue?


    Sorry for answering on this old thread but I'm currently facing a similar issue. Whenever I try to instantiate a class that is derived from ConnectionListener my app crashes with the error :

    Symbol Not Found Error
    Failed invoking <symbol>

    In the log file on the device I see this:

    @PC = 0x10007B5E
    @PC = 0x10002524
    TVM ERROR:
    Symbol Not Found Error
    Failed invoking <symbol>

    TVM ERROR:
    Symbol Not Found Error
    failed in cdp_tvm_invoke

    The error occurs on the device AND in the simulator. Any ideas, what I'm doing wrong?
  • Former Member
    Former Member over 9 years ago
    Sorry for answering on this old thread but I'm currently facing a similar issue. Whenever I try to instantiate a class that is derived from ConnectionListener my app crashes with the error :

    Symbol Not Found Error
    Failed invoking <symbol>

    In the log file on the device I see this:

    @PC = 0x10007B5E
    @PC = 0x10002524
    TVM ERROR:
    Symbol Not Found Error
    Failed invoking <symbol>

    TVM ERROR:
    Symbol Not Found Error
    failed in cdp_tvm_invoke

    The error occurs on the device AND in the simulator. Any ideas, what I'm doing wrong?


    My fault. The problem originated in a missing permission. It seems like the debug message for derived classes, you are missing privileges for, is not "missing privilege" but instead "Symbol not found error".