Custom event handler isn't triggered when dispatching an event with client-side API (debug)
There is a custom event which I try to dispatch via client-side API.
I use the version of Code Runner which went with the generated project for the custom event and IntelliJ IDE to debug it.
I have set breakpoints to check whether the event handler is triggered. When I dispatch the event from timer (i.e.directly), everything seems to be alright. But when I try to do it using client-side API (REST), I get "OK" response from server, but the event doesn't seem to be triggered ( as the breakpoint isn't hit ).
This is the code for event handler in Java ( generated via console ) :
This is the request I send to dispatch Sync_event:
Am I missing something?
P.S. At first I tried dispatching the event using client-side API for iOS (an async method with block-based callbacks) but I kept receiving an empty response. So I've switched to REST API to make it easy to check whether the event handler is triggered at all.