Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Take a "Selfie" when UX Button is pressed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Take a "Selfie" when UX Button is pressed

    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

    #2
    Re: Take a "Selfie" when UX Button is pressed

    Using Alpha's image capturing actions the camera fires up under iOS and Android. Both have an on-screen "switch" to change the camera in use. You don't have to do anything except let your users know what they need to do.

    Comment


      #3
      Re: Take a "Selfie" when UX Button is pressed

      Hi David

      Thanks for responding.

      For my app, I don't want the USER to capture the image... When the customer presses the "Punch In" Button on the UX, I want the system to AUTOMATICALLY: 1) capture the image; 2) send the image to the server (with the other data I've collected, such as time, date, etc.); and, ideally 3) delete the photo after it's sent). I know how to open the camera app (all of the users are using Android), but I want the actions to be controlled by Alpha (my app).

      I'd appreciate any help or suggestions.

      Thanks,
      Phil

      Comment


        #4
        Re: Take a "Selfie" when UX Button is pressed

        You'd need a custom plugin to do this... and even then it may not be allowed by Android... or even possible given the million permutations of the OS on devices.

        You'd have other problems as well. You'd have to wait for autofocus before taking the picture. You're users are going to mess with you to no end.

        I believe you can get a unique device id from each device. You could use that. Would users give their phones to other users to sign in for them?

        Comment


          #5
          Re: Take a "Selfie" when UX Button is pressed

          Rather then using "Minority Report" image capture, which can be very "heavyweight" in terms of payload, why not use signature capture instead? You must still "audit" the images, correct? Signatures have the benefit of a smaller payload and could imply a tacit legal agreement. Other issues on the handset include; how would you control which camera is to be used? Have you vetted the concept of the surreptitious image capture with a lawyer?

          It would seem that the real issue is not technical, but rather one of trust. There comes a point where technical solutions become onerous. Wouldn't it be more productive to measure the work done rather than implementing "Utopian" surveillance?

          Comment


            #6
            Re: Take a "Selfie" when UX Button is pressed

            Hi Westridge-

            Thank you!

            You are absolutely correct on all levels. I think I was just getting carried away with "technology" and I will immediately abandon this nonsense.

            When I was developing the app, I wanted to give the customer a greater trust that nobody is trying to "beat the system" (and they don't especially trust all of their employees. One of their employees lifted their company American Express card and went on a shopping spree before AMEX picked up on the suspicious charges).

            We will simply make sure that employees understand that entering information in the new electronic "time card" constitutes their legal payroll record and must be treated as such. In addition, they will be expected to "protect their PIN's" and treat the system properly.

            Thanks for "bringing me down to earth" and away from "Minority Report" (good movie). I guess, with all of the power of Alpha, it's easy to over-complicate things.

            With appreciation,
            Phil

            Comment


              #7
              Re: Take a "Selfie" when UX Button is pressed

              Phil:

              You took it in the light in which it was intended. Cheers, and enjoy your project.

              Comment

              Working...
              X