give error if deploying/data initing from cordova app