Permissions needed to save and load a file?

After looking over this https://docs.coronalabs.com/guide/data/readWriteFiles/index.html

I wonder if there are any permissions needed to save and load a file on an android device, especially:

• READ_EXTERNAL_STORAGE

• WRITE_EXTERNAL_STORAGE

because this are sensitive permissions and I would like to remove them completely from the build settings.

I’m storing information on device when a purchase was successful and this is looked up each game session.

Can I remove the permissions?

If you are saving to a sandbox folder (i.e. system.DocumentsDirectory), I don’t believe you need those permissions, but I can’t be for certain. I would run a quick test, build your app with them commented out and see if you can write and then read back a file from one of the writable sandbox folders.

Rob

Thank you for your answer. One more thing: Is one of those permissions needed for showing ads with admob maybe?

Most of our plugins today inject their required permissions into the project so you don’t have to. The AdMob plugin uses:

 "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE"

Rob

If you are saving to a sandbox folder (i.e. system.DocumentsDirectory), I don’t believe you need those permissions, but I can’t be for certain. I would run a quick test, build your app with them commented out and see if you can write and then read back a file from one of the writable sandbox folders.

Rob

Thank you for your answer. One more thing: Is one of those permissions needed for showing ads with admob maybe?

Most of our plugins today inject their required permissions into the project so you don’t have to. The AdMob plugin uses:

 "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE"

Rob