Languages

Menu
Sites
Language
emulator and geolocation

Hi!

I have wrote a web application with geolocation using and it works well on web simulator and in chrome and firefox, but it does not work on emulator tizen 2.2. When I try to obtain geolocation I always get 'Permission denied'. Emulator every time asks me for accessing rights and I always press 'Yes, allow', but it does not help. Should my app have some additional rights for geolocation using?

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

9 Replies
wil smith
Post this query under "Web Application Development"
Alexander Zaitsev
Ok, moved
talari praveen kumar
Hi Alexander Since there is no GPS in emulator you cannot find your location. If you want to use geolocation in emulator you can do it using Event Injector. Please refer the below link for Event Injector https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.gettingstarted%2Fhtml%2Fdev_env%2Fproviding_location_data.htm
Alexander Zaitsev
Thank you for answer. Unfortunately it does not help. I send my location via event injector, but my application still getting 'permisison denied' error code.
talari praveen kumar
Add * in access of config.xml file and also add privilige http://tizen.org/privilege/location
Larry Aasen

Here is what I used in my config.xml that worked for me on Tizen 2.2:

<tizen:privilege name="http://tizen.org/privilege/location"/>
<access origin="*" subdomains="true"/>

However, the reference device I am using is hard coded to Niederkassel at location:

  • Latitude:  51.24363131666667
  • Longitude: 6.741913666666666
Vikram Kshirsagar

Hi Larry,

I am new on Tizen. I tried to get latitude and longitude but not getting. 

Please share code with me.

Thanks in advance.

Larry Aasen

Please post your code here so we can all review it and then maybe we can point out some helpful changes.

Alexander Zaitsev

Thank you, location privelege really works.