I have created an application that uses Wikitude SDK and ImageRecognition feature only.
However, when the applicatoin is started on iOS device, the Wikitude SDK asks user about permission to use his current location.
The message is default iOS alert when someone tries to get location details, the full message is: "Application" would like to use your current location. With buttons: Don't allow / Allow.
My questions are:
1. If its possible to do not show this alert? How can I do that?
2. Why Wikitude SDK needs my location when I use only ImageRecognition feature?
I have disabled sensors in JS, right after architect.js initiation:
<script src="architect://architect.js"></script>
<script>
AR.context.services.sensors = false;
</script>
W
Wolfgang Damm
said
almost 10 years ago
We are aware of this issue with IR only AR experiences. At the moment unfortunately you cannot do anything about it and the location is required.
We are working on a fix for this and will release it with our next SDK update. Please stay tuned.
P
Przemek Szalko
said
almost 10 years ago
Wolfgang,
Thank you for quick answer. I'm looking forward for the next SDK update. Thanks!
S
Sergey.kargopolov
said
about 9 years ago
Wolfgang, I am experiencing exactly the same issue :(. May I enquire if it has been fixed? Is there a way not to request Location permissions when Image Recognition is used only? If user does not allow app to read their location then Image recognition does not word at all.
W
Wolfgang Damm
said
about 9 years ago
Please check with the latest version. A fix for it was included in an SDK version early this year.
Check out the iOS reference and the set the WTAugmentedRealityMode to IR. This will remove sensors and asking for permission to use location data.
P
Pedro Silva
said
over 7 years ago
Dead Link the iOS reference
N
Nicola Radacher
said
over 7 years ago
Hi,
This changed in the last years - please check out the latest iOS documentation and the WTFeatures class.
Przemek Szalko