Hi-
I have a question that I've been trying to answer. First, a very quick background. I've created a "time card" app for one of my customers. Its purpose is to allow employees to "Punch In and Out" remotely, on their cell phones, without having to come to the office. The employee enters his/her "PIN" and the system knows whether they are punching in or out... and the employee can add an optional "note" if they want to. The data is updated to the server, so the office can know who has punched in/out and the system generates the weekly payroll for their payroll service. Anyway, it's working great.
When I was designing the app, there were 2 obstacles I had to overcome:
1) How do we know where the employee is when they're punching in? For example, we don't want them punching in while they're still at home. Well, that was easy to solve. Each time they punch in/out the system records the longitude and latitude of the current location, so that the office can see these points on a map.
2) It's the second obstacle that I can't figure out (though, I'm guessing it won't be very difficult): How do we know that the person is punching in/out for himself, rather than giving his PIN to someone else on the crew and asking him to punch in. For that, I want to take a "selfie" when the Submit button is pressed. Obviously, I don't care about the quality of the picture... I just want to be comfortable that the employee is punching in, not someone else.
How can I control the camera (the "front" camera, actually) to take the selfie, send the image to the server (and, ideally, delete the photo after it's sent).
I've seen the Phone Gap commands but can't figure out how to program them in Alpha. If there's a guide, tutorial or video, I'd really appreciate it if you could refer me to the location. OR, if there's documentation for these features, that would be great.
Thanks for your help,
Phil
I have a question that I've been trying to answer. First, a very quick background. I've created a "time card" app for one of my customers. Its purpose is to allow employees to "Punch In and Out" remotely, on their cell phones, without having to come to the office. The employee enters his/her "PIN" and the system knows whether they are punching in or out... and the employee can add an optional "note" if they want to. The data is updated to the server, so the office can know who has punched in/out and the system generates the weekly payroll for their payroll service. Anyway, it's working great.
When I was designing the app, there were 2 obstacles I had to overcome:
1) How do we know where the employee is when they're punching in? For example, we don't want them punching in while they're still at home. Well, that was easy to solve. Each time they punch in/out the system records the longitude and latitude of the current location, so that the office can see these points on a map.
2) It's the second obstacle that I can't figure out (though, I'm guessing it won't be very difficult): How do we know that the person is punching in/out for himself, rather than giving his PIN to someone else on the crew and asking him to punch in. For that, I want to take a "selfie" when the Submit button is pressed. Obviously, I don't care about the quality of the picture... I just want to be comfortable that the employee is punching in, not someone else.
How can I control the camera (the "front" camera, actually) to take the selfie, send the image to the server (and, ideally, delete the photo after it's sent).
I've seen the Phone Gap commands but can't figure out how to program them in Alpha. If there's a guide, tutorial or video, I'd really appreciate it if you could refer me to the location. OR, if there's documentation for these features, that would be great.
Thanks for your help,
Phil
Comment