Code Monkey home page Code Monkey logo

Comments (7)

chaosemer avatar chaosemer commented on July 17, 2024 3

The issue is that once you enable ARCore, Android Permissions are no longer requested automatically, and you do not have the location permission.

You can request the location permission at runtime with AndroidPermissionsManager.RequestPermission(), passing "android.permission.ACCESS_FINE_LOCATION".

I hope this helps! If so, please feel free to close this issue.

from arcore-unity-sdk.

nathanmartz avatar nathanmartz commented on July 17, 2024

Thanks for the bug report. We're looking into this and will get back to you when we have more info.

from arcore-unity-sdk.

chaosemer avatar chaosemer commented on July 17, 2024

@dblatner could you provide a repro project where you expect Unity's LocationService to work but it is not working? That will help us immensely in tracking this down.

from arcore-unity-sdk.

dblatner avatar dblatner commented on July 17, 2024

Hello @chaosemer, @nathanmartz,

I uploaded an example ARCore Unity project : https://github.com/dblatner/unity-arcore-locationservice

It's basically the HelloAR example, then I included two scripts. One for getting the geolocation and one for displaying it on the canvas.

I checked the problem with the Samsung S8 phone. I double-checked the location settings on the phone but the problem persists.

Please let me know, if the problem occurs on your phone too or not.

Best regards

from arcore-unity-sdk.

chaosemer avatar chaosemer commented on July 17, 2024

I'm assuming your issue is fixed due to the lack of responses. Please reopen if you're still having an issue.

from arcore-unity-sdk.

ashanhol avatar ashanhol commented on July 17, 2024

Hello! I was running into this myself and wanted to add a note since this was the only visible thread for this problem.

If you have to chain multiple permissions, I found I needed to add WaitForCompletion() in order to make both requests pop up.
Example:

var firstPermission = AndroidPermissionsManager.RequestPermission("android.permission.ACCESS_FINE_LOCATION");
firstPermission.WaitForCompletion();
var secondPermission = AndroidPermissionsManager.RequestPermission("android.permission.CAMERA");
secondPermission.WaitForCompletion();

from arcore-unity-sdk.

tpaslou avatar tpaslou commented on July 17, 2024

I faced the same problem . I have an S10 and using ARCore v1.11 . Although , the problem appears only on the editor and instant preview . On runtime i get GPS data .

from arcore-unity-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.