I have a native services which fires an event
bundle *event_data = NULL;
event_data = bundle_create();
int ret = EVENT_ERROR_NONE;
ret = bundle_add_str(event_data, "leq", "test");
ret = event_publish_app_event("event.arq901aCcl.tatysoundservice.new_data_event", event_data);
if (ret != EVENT_ERROR_NONE)
dlog_print(DLOG_ERROR, LOG_TAG, "event_publish_app_event err: [%d]", ret);
ret = bundle_free(event_data)
and a web application which wants to receive the event
watchId = app.addEventListener({
appId: 'arq901aCcl.tatysoundservice',
name: 'new_data_event'
}, new_data);
but it does not seam to work, in the log i see the event is fired.
from a web app to a web app the event work fine.
Does anyone has a clue what i'm doing wrong?
Regards
Maarten