Search Unity

Cant get project to ask for Location Permissions

Discussion in 'Navigation' started by Overature, Jul 28, 2020.

  1. Overature

    Overature

    Joined:
    May 10, 2020
    Posts:
    25
    Hi, I am building a unity project that uses GPS location with AR Foundation and I can't get it to ask for Location permissions when I launch the app. The only way I can get it, is if I manually go into app info on the phone and enable it from denied to allowed.

    The white box up box for asking for camera and video permissions (for AR foundation) pops up at the start and works no problem but I don't know how to get it to work the same for the GPS. My GPS code is working fine and gives accurate data so I am not sure where I am going wrong. I have "access fine location" in my manifest file but that doesn't seem to make a difference.

    Any help would be great.
    Thanks