Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

iOS8 - Filesystem changes? applicationDataDirectory vs webview

$
0
0

Hi,

my app used to work like this (up to iOS7):

a webview is loading a local webpage. Some json files are copied to applicationDataDirectory and if the user makes an "internal update" newer files get pulled from the internet into the applicationDataDirectory. The webview now opens the json files from there to have the newest files. For this I've just added '../Documents' in front of the files (inside the webpage local js files). That was working fine. But in iOS8 it looks like the content is in two seperate folders now:

webview: ../Library/Developer/CoreSimulator/Devices/30.../data/Containers/Bundle/Application/E83.../Documents/file.json

applicationDataDirectory: ../Library/Developer/CoreSimulator/Devices/30.../data/Containers/Data/Application/F97../Documents/file.json

notice that it is now "Data" instead of "Bundle" and even a different ID. So how can I get from the webview folder to the writeable folder now?

SDK: 3.4.0 (16.09.2014) iOS8, iPad


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>