Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

geolocation is not working in android mobile  #1448

@lovepreetsingh03

Description

@lovepreetsingh03

I get location in my mobile ( yuforia 5010A ) but When I install app in my friend mobile then its not working.
i didn't understand why its not working in other mobile.
below is my code .

let enableOption={
timeout: 10000,
enableHighAccuracy:true
};
this.loact.canRequest().then((res: boolean)=>{
if(res)
{
this.loact.request(this.loact.REQUEST_PRIORITY_HIGH_ACCURACY).then(() =>{

         this.geolocation.getCurrentPosition(enableOption).then((position) => {
           this.geoCuntory(position);
            }).catch((error) => {
              alert(error);
            
            });

      }, (error)=>{
         alert(error);
        
      }
    )
    }
  })

Please help me out to get solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions