Hi everyone, I'm trying to implement a package consisting of two native applications for wearables. The problem I face is that if I start both applications separately, the event-api works as it is supposed to work. But as soon as I combine both applications in one project via "Tizen Studio->Package->Multi" the Event-API doesn't work anymore. In the service I am no longer able to receive the events.
I prepared two code snippets and also got a minimal working example that I can send you if you want to test it yourself.
It consists of: UI-APP with the app-id org.example.uibuildersingleview. What it does: You push a button and execute the following code snippet
void view1_buSendSignal_onclicked(uib_view1_view_context *vc, Evas_Object *obj, void *event_info) { bundle *event_data = NULL; event_data = bundle_create(); int ret = bundle_add_str(event_data, "new_config_key", "true"); ret = event_publish_app_event("event.org.example.uibuildersingleview.newConfig", event_data); dlog_print(DLOG_ERROR, LOG_TAG, "ret value: [%d]", ret); }
In the service I register the listener:
bool service_app_create(void *data) { event_handler_h event_handler; int ret = event_add_event_handler("event.org.example.uibuildersingleview.newConfig", user_event_cb, "CUSTOM_EVENT_KEY", &event_handler); dlog_print(DLOG_ERROR, "UIB_APP", "service app create", ret); return true; }
Do you have an idea what I'm doing wrong?
I also tested the "Message Port"-Api. Same behaviour! As soon as I combine the application in a project, the communication stops working.
I appreciate any help - I'm out of ideas...
Cheers Keaselstein