function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gauri Kasat 8Gauri Kasat 8 

How to get location whenever we open salesforce mobile app?

I have to get location whenever we open salesforce mobile app ?
If anyone have solution.. Please do tell
Raj VakatiRaj Vakati
Its possiable  but can you explan more about what your are trying to do 
 
  1. You can use LoginHistory Object whihc is having info about LoginGeo 
Gauri Kasat 8Gauri Kasat 8

Hey Raj,

I need to get location whenever the salesforce mobile app become inactive to active.
Inactive state means when the phone's screen get locked or we minimized salesforce1app & start using other apps like whatsapp.
Active state means when we again start using the app.

 

For capturing locations, i am using google map api but i don't know how to get location when app becomes active.

Gauri Kasat 8Gauri Kasat 8
Hey meenu,
Thankyou for your help but this doesn't worked for me.