facebook

map current geolocation: Suppress user approval dialogs?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #331522 Reply

    Unknown Author
    Participant

    So…I wrote a quick “Find Me” app using the map widget and geolocation. It’s working beautifully.

    When the iOS native app is started for the first time, there’s a dialogue:

    “AppName would like to use location services”

    Once into the app, if a page uses geolocation, there’s another dialogue:

    “iphoneid/apps/AppName/page_name.html Would like to use location services”

    This is a very long, incomprehensible (to users) dialogue that will cause confusion. I would like to suppress this if possible. I read on other forums that it’s not possible, as it’s written into the HTML5 standard.

    Is there anything that can be done?

    -1TC

    #331538

    support-michael
    Keymaster

    @1thinchip

    We are looking into this. I can replicate it with the showlocation example in an ios app.

    #331539

    Emaz
    Member

    Hello, I am developing an application, inside there will be a button for the current position, I tried to do it but only occasionally tells me exactly where I am, most of the time I like to be in Dallas. Could you help me? I do not know who to ask.
    Thank you very much

    #331543

    Unknown Author
    Participant

    In the Test Center, it says Dallas. Compile it for your phone. It will use your real location.

    You can also edit your location in Test Center, under Geolocation. You can put in co-ordinates.

    -1TC

    #331634

    Emaz
    Member

    I understand, but because I want to put my app on Apple Store, how do people who download my app to see their current location? I mean, my app will be a free for tourists and there will be a button do not get lost in the city.

    #331636

    Unknown Author
    Participant

    Follow the geolocation code here, Section 3.4:
    http://www.genuitec.com/mobile/docs/usingMaps/usingMaps.html

    If you can see your current location on your phone, then they’ll be able to see their current locations on their phones, right? Don’t get confused just because test center uses geolocation co-ordinates for Dallas.

    -1TC

    #331689

    @1thinchip,

    We found the cause of the issue and will share how to avoid dual notifications by tomorrow.

    #331699

    Unknown Author
    Participant

    Excellent! Thank you!
    -1TC

    #332227

    Unknown Author
    Participant

    Anxiously awaiting this solution…

    -1TC

    #332228

    support-michael
    Keymaster

    @1thinchip

    >Anxiously awaiting this solution…

    Please revisit this example: http://www.genuitec.com/mobile/docs/usingMaps/usingMaps.html#center_on_current_loc
    Notice that the snippet has been updated from the original to better account for native environment/phonegap. You should only see the traditional prompt for the app to use your location.

    #332461

    Unknown Author
    Participant

    I got this working on real hardware. Thanks! I noticed that this will work if done for the first map instance, but will hang map operations if the code is part of an “update map” function.

    -1TC

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: map current geolocation: Suppress user approval dialogs?

You must be logged in to post in the forum log in