My school used to do this,
The way it worked was we'd set homework online. Our systems were not adaptable so it would be eg ten questions on what we'd done in class.
If the students didn't get 90% they'd be asked to attend a lunchtime session where a teacher would go through it with them. "Homework club".
If they didn't go to homework club they'd get detention for basically refusing help.
Most kids worked out pretty quickly that sharing the answers in a group WhatsApp that did not have the teacher on solved the problem.