Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70919

Ionic 3 Geolocation not working as expected on Android Device

$
0
0

@stavrosks wrote:

Hi all,

I have a problem using Geolocation on Android device.

I create an Ionic 3 application.
I use Geolocation ( [https://ionicframework.com/docs/native/geolocation/]).
I use the sample code provided there.
The problem is that the code works in Browser but whene i upload it on an Android device does not work.

When i start the app on device the alert for location permition is promted.
I press Allow.
Then in the android tray an icon appears that says “Searching for GPS”.
After timeout expires i got the error for timeout and no location.

The strange think is this:
If i close my app, then open google maps ( or other app using gps position ) and reopen my app works as it should.

I don’t know what to do.

The permissions are fine :





and everything was installed properly.

Can anyone help please?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>