awesome7 / XamAR

Cross-platform Augmented Reality (AR) SDK for Xamarin
https://xamar.io
MIT License
33 stars 6 forks source link

XamAR.Core.Exceptions.FeatureNotEnabledEx - Location not enabled. #55

Open paroksya opened 2 years ago

paroksya commented 2 years ago

Hello Everyone

I'm facing this error continuously, when after i have added this package and sample code.

I have also tried by downloading sample code from repo to my local machine and still facing same error

Screenshot 2022-02-25 at 5 40 01 PM

Attaching screenshot and stack trace

at XamAR.Core.Sensors.LocationMonitor.StartTracking () [0x0013d] in <4bb7dc889d9d4618ad82e826b8c91b87>:0 at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.25(intptr,intptr) at (wrapper native-to-managed) Android.Runtime.DynamicMethodNameCounter.25(intptr,intptr)

I have made sure to added permission in android manifest but still facing this same issue,

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-feature android:name="android.hardware.camera.ar" />
miki-bgd commented 2 years ago

Hello, have you enabled Location on your Android device?