Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger set user data more often to ensure state transmission #107

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

otacke
Copy link
Contributor

@otacke otacke commented Oct 18, 2021

Saving the content state is unreliable if the user closes the tab, see #106 for details.

When merged in, the setUserData function will also be triggered on the visibilitychange event and on the xAPI answered event.

Those new triggers would only cause an AJAX request to the server if the state actually changed, because H5P checks, so these two additions should not have a performance impact server-side.

@otacke otacke changed the title Trigger set user data Trigger set user data more often to ensure xAPI transmission Mar 26, 2022
@otacke otacke changed the title Trigger set user data more often to ensure xAPI transmission Trigger set user data more often to ensure state transmission Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant