Skip to content

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

Open
otacke wants to merge 2 commits into
h5p:masterfrom
otacke:trigger-setUserData
Open

Trigger set user data more often to ensure state transmission#107
otacke wants to merge 2 commits into
h5p:masterfrom
otacke:trigger-setUserData

Conversation

@otacke

@otacke otacke commented Oct 18, 2021

Copy link
Copy Markdown
Contributor

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

Development

Successfully merging this pull request may close these issues.

1 participant