Android external storage permission

Godot Version

4.2.2 stable

Question

I tried:
access_external_storage
storage

in both cases on PC I get
true, false
on android
false, true

and it does not ask me for permission.

how should I ask android for permission?

	var access_granted = await OS.request_permission("access_external_storage")
	mold_window.set_instructions_only(["access granded:", access_granted, "android", OS.has_feature("android"), "storage"])

On the Quest, I enable the “Manage External Storage” permission in the project export, and then it asks me for permissions automatically.

actually only

OS.request_permissions()

does the tick

I have checked everything that I needed and so forth but only when I do that it asks me for all permissions I have checked in export else it does not ask me.

also it does not do await so I need to wait manually in code or button

Does anyone know how to make the permissions appear? I’ve already tried from the export location and in the code I wrote the Os.request_permision() in an autoload file but when I install He doesn’t ask me for permission

OS.request_permissions()

not certain permission but all permissions

add s on the end and remove all parameters

you can also try on the

ready():

function

don’t know how exactly works autoload for ready, but that should work.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.