Hello Srenivasan and Gene,
Thanks for your patience while tackling this. I have not been able to reproduce your issue with the undefined error. The only times I am getting "undefined" is in the device simulator and in the companion app - both are expected. When I build the app for iOS or Android with the app package option and debug the app on the device, no undefined errors are thrown and the app seems to work properly.
I am attaching a copy of my project. Again, please, note that in order to work with custom plugins on device, you need to pick Build in Cloud -> Device Platform -> App Package -> Next or Build and Deploy.
Note that by default the "Companion app" is probably selected when you Build in Cloud.
if you are still experiencing issues, don't hesitate to let us know but, please, provide screenshots that illustrate where you're getting the error and a screencast that illustrates your workflow. Thank you!
Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!