How to generate a link for users?

0
Hello, I am creating an application where I have various quiz. Further various questions and there options are associated with it which are defined and handled by the admin. Now I want that whenever some users want to access a quiz and answer it, the admin can generate a link and share it to the users. The user can then use that link to access only that quiz whose link has been generated by the admin. How do i implement this?
asked
1 answers
0

Hi Japneet,

You must have an object of quiz, create quid id(Int)  and also create 2 one to many association to account entity

1.unattemped(*)_participant_quiz

2.attemped(*)_participant_quiz

 

create deeplink which can open quiz for users. this deeplink should take quiz id as param , share this deeplink to users

 

Now in admin side setting, select user whom you want to take quiz, and put that person in association unattemped_participant_quiz then in deeplink by quiz id retrieve quiz object and from quiz object retrieve unattempted people list and retrieve current user account & check if current user is in unattempted associaton or not

if it is there show quiz page otherwise not.

when user has attemped quiz put that person in attemped_participant_quiz association and remove from unattended association.

 

Hope it helps!

answered