hmm, try this please. Take the latest code on the server, I've added some debug code to it.
Uninstall/delete your smart app from the IDE. Then Create a new app from code and paste the new code.
Then START the LIVE LOGGING before installing the app. Now install the app.
Filter the IDE logging to ONLY the app you just installed.
Please paste those logs or PM them to me directly. thanks