installed the scandit plugin
added sample code for scandit
Intergrated the scan to interact with API service
removed unecessary code and build in check or cordova is defined