New guy here ; I’m looking into creating an app that replaces the keycards for ClockIn and ClockOff.
For example when I get to work ( specific location), my phone automatically detects that and clocks me in…also when I leave the location I’ll be clocked off; and all this information is stored and sent to my manager.
Can this be done? any input is appreciated.
I managed to set up the location feature; now I would like to move forward and compare the user location with the office location. And if the same than the user is clocked In.
Anyone please…
Thank you so much for this piece of information, exactly what I’m looking for.
I tried to apply everything I understood and got the below code which doesn’t seem to be working- please help someone please…
I don’t quit follow the goal of the if/else. You want to see
if ( lat and long are at the office )
do:
set atTheOffice to true
navigate to screen 2
else:
set atTheOffice to false
and just sit idle
Right now your logic is only going to set “atTheOffice” to true if you are in the lat long specified, or set it to false if you are not. you will never get to the “Navigate to screen 2” command. (unless something happens on another screen that can set "atTheOffice to true.
the most straight forward way would have one huge if line but would look like:
if ( (lat > 46.760082 and lat < 46… ) and (long > 23… and long < 23…) )
do {
set atTheOffice to true
navigate to screen2
}
else
set atTheOffice to false
its usually a good idea to do an error condition:
if error
do: set labelx text to error
elseif ( (lat > 46.760082 and lat < 46… ) and (long > 23… and long < 23…) )
do {
set atTheOffice to true
navigate to screen2
}
else
set atTheOffice to false