-2

I’ve implemented Google map & fuse location API to get current location. But facing issue like unable to get current location (blue dot) after accepting permission at run time .

This is happened only in fresh installed app, if i kill the app and reopen the app then its works fine.

enter image description here

am i missing something?

Thanks

Sanket Kachhela
  • 10,861
  • 8
  • 50
  • 75
Nilam Vaddoriya
  • 433
  • 2
  • 10

2 Answers2

1

Enable your location

map.setMyLocationEnabled(true);

ugur
  • 3,604
  • 3
  • 26
  • 57
1

Add

map.setMyLocationEnabled(true); in

onRequestPermissionsResult() method So it will update the current location after you accept the permission

Gaurav
  • 3,615
  • 2
  • 27
  • 50