Device Handler tiles not showing up on the app

I had written a Service manager to connect to cloud and add device. I also had written a device handler with capability switch and the thing is added in the app but when I open it the app looks blank.
The error message says error fetching data from device. Does this happen if the initial state of the device is not update ?