Comments (7)
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.
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.
@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.
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.
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.
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.
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)
- Pixel 2 XL - your devices doesn't support depth? HOT 1
- ARCore app crashes in release mode in Flutter.
- Crash in ArPresto_update(), ArSession_update(): java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) HOT 4
- Camera freeze on some devices like Samsung Galaxy A40
- Can you provide local support for Cloud Anchor?
- AR Core Cloud Anchors stopped working
- Black screen when I use user's camera on Xiaomi Mi A3. AR Face.
- 'SpatialTracking' does not exist HOT 2
- Raycast from Image Position
- [QUESTION] Can I use depth api and cloud anchors at the same time??
- Crash on ArSession_configure on OPPO CPH2135 device HOT 4
- Unable to record with Recording API
- Persistent Cloud Anchors sample app - Failed to host a Cloud Anchorwith error ErrorNotAuthorized. Happens for keyless authentication HOT 6
- Instant Preview: Black screen but it's still working?
- Unable to play recorded session
- "Session.RequestApkInstallation" returns no result.
- Retrieve position and rotation from Playback API
- arcoresdk+unity urp let background blue
- Redmi Note 8 ARCore not able to scan surface
- Dont workin Samsung galaxy note 10+
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arcore-unity-sdk.