realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.45k stars 1.75k forks source link

Realm android permissions #7644

Closed Lir10 closed 1 year ago

Lir10 commented 2 years ago

Problem

I couldn't find it in the docs but I'm using the default config to connect to realm. Should we define a permission to write into external storage? seems like it's working on my device (Samsung S21) without that permission though

Solution

No response

Alternatives

No response

How important is this improvement for you?

No response

edualonso commented 2 years ago

Hi @Lir10 If your code targets SDK version 30 and above, you are forced to use scoped storage. In this case, using app-specific storage does not require explicit permissions, see https://developer.android.com/training/data-storage. See https://developer.android.com/about/versions/11/privacy/storage for more info on scoped storage.

clementetb commented 1 year ago

Closing due to inactivity.