Right now I can't test your code, but just a few thoughts:
1) Titanium.Filesystem.applicationDataDirectory: Where does this directory is supposed to be in the app bundle? The Wikitude SDK will save the file into the App Sandbox 'Documents' directory. So make sure that Titanium is looking into the correct directory.
2) Add a try/catch block to capture any Titanium.Filesystem errors. They are likely throwing an exception why they cannot open the file.
I will try it out myself asap and provide you more information.
almost 5 years ago
The issue is solved.
The workaround is to call Titanium.Filesystem.getFile outside onSuccess.