0

I'm building an app using Ionic 1.3.1, crosswalk and ng-cordova for accesing the filesystem. I have a path in which I want to create\write a file after the device ready event

var storagePath = cordova.file.applicationStorageDirectory;

When I load my app in a browser it outputs to the console "ionic.bundle.js:17946 Uncaught ReferenceError: cordova is not defined". And If I run my app on an android phone it's just a blank white screen.

  • You can't use Cordova in the browser, can you try commenting this variable out and testing your application in the browser again? – Dexter Jul 19 '16 at 20:33
  • I couldn't run it on android as well, so I thought that it was some other issue. Turned out the problem was in my other code. Thanks for the response – Pavel Fanko Jul 19 '16 at 21:06

0 Answers0