Picture of Matt Leathes
Re: Update cmi.core.score.raw on each assessment
by Matt Leathes - Tuesday, 26 May 2020, 4:44 PM

Not quite, the LMS' SCORM API is where all the data gets saved - the LMS will save it back to the server whenever LMSCommit is called.

You could set the spoor 'advanced setting _timedCommitFrequency to 1 which will force it to call LMSCommit every minute - but if that's not suitable then your best option (other than to wait for 'save' to be added to offlineStorage, which might be a while and not necessarily compatible with the FW version you're using) is to call the 'commit' function of wrapper.js in spoor)

I think you need to do something like var scorm = require('extensions/adapt-contrib-spoor/js/scorm'); scorm.commit(); but I haven't actually tried that so you might need to tweak it a little! If you mess around in the browser console you should be able to figure it out.