Remote Message Port is not working

Remote Message Port is not working

BY 22 May 2017 Web Application Development

var gServiceAppId = ‘cFlc2IE9pQ.samplenativeapp’,

    /**
     * Service port name.
     *
     * @type {string}
     */
    gServicePortName = ‘NATIVE_PORT_SAMPLE’,
    

    /**
     * Local message port name.
     *
     * @type {string}
     */
    gLocalMessagePortName = ‘WEB_PORT_SAMPLE’,

    /**
     * Local message port object.
     *
     * @type {LocalMessagePort}
     */
    gLocalMessagePort =null,

    /**
     * Remote message port object.
     *
     * @type {RemoteMessagePort}
     */
    gRemoteMessagePort = null,
 try {
        gRemoteMessagePort = tizen.messageport
            .requestRemoteMessagePort(gServiceAppId, gServicePortName);
        
    } catch (ex) {
        gRemoteMessagePort = null;
        console.log(ex.name);
    }
   
 

 


in catch block, console.log(ex), it is showing “NotFoundError” and i cannot send message from web to native. Any solution??

 

Written by