Leanplum/Leanplum-iOS-SDK

Storing __Leanplum.sqlite in Documents

Closed this issue · 2 comments

The __Leanplum.sqlite database that is new as of 2.0.3 is currently stored in the app container's Documents directory, which is reserved for user specific data.

All other analytics providers, and generally any non-user data, is stored under the Library directory in the container.

Can this please be added to the fix list? I realize how pedantic this is, but we are hoping to enable a feature in a future release that uses iCloud Drive and shows that Documents directory for sharing info with us. Having the Leanplum file there is going to be confusing to our users.

There are other issues that are more urgent, but will put it in our backlog. Let's discuss outside of this thread and determine which ask is more urgent. I received the compiled feedback from Jeffery.

@alexisoyama I just want to chime in here and let you know that this also a pretty important issue for us. The next release of Firefox will use iCloud Drive and we definitely do not want users to see this file, or be able to modify / delete it.

It would be good if the storage path would be a configurable option in Leanplum. So that application developers can decide what the best place is. With File Sharing, the default of ~/Documents is most certainly problematic so you probably also want to give that a thought.