Search code examples
swiftverificationconfirmationverifyanti-cheat

How to confirm/validate a users real-life actions in an app


I have an idea for an app that rewards users for completing real-life actions (things like recycling, eating healthy .etc) but I want to avoid having a button on every action saying "I did it" because then some users will just click all the buttons to get the rewards.

I have tried searching Stack Overflow for things like "confirming a users actions" and have not turned up any promising results.

Some examples of actions I would like to try and confirm if possible are:

  • recycling
  • certain food items the user buys (barcode scanner maybe?)
  • donations to thrift shops (goodwill .etc)
  • users energy bills/use

I understand that some of these may need to be trust-based (I.e. With a "I'm done" button) but I would like to minimize the use of this as much as possible to prevent users from cheating the system. Does anyone know of some reliable ways to verify that the user has completed the tasks before offering rewards?


Solution

  • You have to look at the sensors that are available to you on the device. Honestly I can't see a way to do many of the things you suggested. Location based actions may be a good route. Checking in within 1Km of the gym or thrift store for example.

    I heard about an app (i forget the name) where you would program in what exercise you are trying to do then the gyro and accelerometer in the phone would determine if you are performing the exercise correctly and verifying how many times you did it.