by Daniel Palou.
Hi Jan Philipp,
I also found this a bit confusing when I developed the Mobile app
To determine the attempt to use we use the WebService mod_quiz_get_user_attempts.
If we don't receive any attempt, it means we need to start a new one. Also, if the last attempt is finished (state is 'finished' or 'abandoned') we also start a new attempt. Otherwise we use the attemptid of the last one without calling start attempt.
Kind regards,
Dani