Koor.fr
Koor.fr

Reputation: 55

CodeName One persistent storage

My CN1 app produce file here FileSystemStorage.getInstance().getAppHomePath(). I can correctly read/write there files.

This folder name is like:- file://var/mobile/Containers/Data/Application/D94F3BF0-821F-4B3E-B03C-981D883CFDCD/Documents/com.factoryname.appname.app/folder/file

When i install a new version for my app on IPad, this part (D94F3BF0-821F-4B3E-B03C-981D883CFDCD) change and after i cannot retreive the needed files.

How can I guarantee that this part remains unchanged? Thank you for your help.

Upvotes: 1

Views: 68

Answers (1)

James H
James H

Reputation: 1116

Try using the Storage class if possible. Also, you might add the build hint to use the "new" Storage location, ios.newStorageLocation set to true.

Upvotes: 1

Related Questions