This system is used widely in the sector and does, to some extent rely on the students not cheating the system. You can take measures to help reduce that risk by only sharing the code in class and not make it widely available. You can also check the app in class to do a quick spot check of who has registered attendance (if you have 5 students in front of you and 20 registered in attendance, there is something wrong!).