Ionic Create Directory in Simulator

I’m currently creating an app using the Ionic Framework. It’s been going really well and the team is enjoying using it. Today we came up against a problem where we need to store images the user has taken on their camera. To test this we created some code that will create a directory when the page loads. It was failing on the iOS simulator due to some line in a library file deep down in the system. Moving the app across to a device worked fine and the code was running as expected. If you’re testing $cordovaFile.createDir you’ll need to do it on device not in the simulator.

About Nick

Melbourne based web developer that loves building front-end systems with anything from vanilla JS to React. Infosec student and active learner. Subscribe to the blog

www ·

Leave a Reply

Your email address will not be published.