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??