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

geolocation is not working in android mobile #1448

Open
lovepreetsingh03 opened this issue Oct 11, 2017 · 0 comments
Open

geolocation is not working in android mobile #1448

lovepreetsingh03 opened this issue Oct 11, 2017 · 0 comments

Comments

@lovepreetsingh03
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant