jskidd3
jskidd3

Reputation: 4783

Store JSON file in Cordova app

I have a JSON file that contains some application data (points on a map) that I would like to store on the application when it goes to the iOS App Store. Is it as simple as placing the JSON file in the www directory and then using the Cordova File API to access it? Is there a specific place in the Cordova app that I need to put the JSON file to ensure it can be accessed?

Thanks

Upvotes: 0

Views: 587

Answers (1)

Rupesh
Rupesh

Reputation: 444

you can store json file anywhere in your www folder and get it using ajax call by giving url of local file. no need to use file api.

Upvotes: 1

Related Questions