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.

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You May Also Like