Smartapp ,events not getting triggered from app

I have created a c2c connector. Even after subscribing with device events with all capabilities and attributes, no events are getting triggered. I am able to send events from my api and ui is getting updated. But on switching the device on/off from app no event is getting triggered.