facebook

Location alert: CLOSED

💡
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 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #334699 Reply

    Yann
    Member

    Hello
    i compiled an app and i’ve two alert to autorise user to get current location.
    First in french (normal),
    and second in english with complete path of application.
    see screen capture
    how i can remove this second alert?
    thanks
    Yann

    Attachments:
    You must be logged in to view attached files.
    #334702

    support-michael
    Keymaster

    Take a look at how initialization is performed in this example
    http://www.genuitec.com/mobile/docs/usingMaps/usingMaps.html#center_on_current_loc

    #334751

    Yann
    Member

    Thanks Wayne

    #334759

    Yann
    Member

    Hello Wayne
    i don’t understand why when i compile my project (IOS6) i have two alert
    i have this code:

     navigator.geolocation.getCurrentPosition(function(position){
            var latitude = position.coords.latitude;
            var longitude = position.coords.longitude;
            sessionStorage['latitude']=latitude;
            sessionStorage['longitude']=longitude;
        });
    

    First Alert in french “Autorisez vous ….” (Allow …)
    Second in english with complete path of app like screen capture
    i don’t understand.
    🙁
    Have you an idea?
    thanks
    Yann

    #334867

    support-michael
    Keymaster

    Please look very closely at the initialization routine (http://www.genuitec.com/mobile/docs/usingMaps/usingMaps.html#center_on_current_loc) as it solves the dual alert problem for maps in native ios apps. You must wait for the deviceready callback before you can begin working with a gmap.

    #334881

    Yann
    Member

    Hello Wayne
    thanks a lot
    i added

    document.addEventListener("deviceready", startWatch, false);

    it’s ok now 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Location alert: CLOSED

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