meta quest spatial access permission

Hi (noob :warning:)

ok here it goes…

I made a default blank scene for a meta quest 3 AR game.
I need to access the scanned rooms and anchors. so, I added this to the level blueprint:

permission posted by anonymous | blueprintUE | PasteBin For Unreal Engine

It works but kind of!!!

you see when I install the game and run It for the first time, a menu pops up asking me to grand permission to access spatial data on the headset. As soon as I hit the accept button it closes the app, and I have to run it again. It is ok on the next runs though; it doesn’t ask for the permission again and I can load the scene with ease.

Now what can I do to prevent it in the first run? what seems to be the problem? It’s not a critical error but it bugs me, and I need the app to run as perfect as possible.

Any ideas?

I just figured something out. it is ok when I package the game in development mode. it just crashes in shipping .

and to clarify things out: I use unreal 5.3.2, android sdk 32 and the os version on the headset is v74.