I am using the scobot js for initializing and launching scorm based course. I am having the following issue when I try to get suspended data.
when the course is launched very first time the suspended data is null and as soon as the course started I save the suspended data using js and it is successfully saved. The issue occurs when I don't close the course window and just refresh it with CTRL+F5. Then I get suspended data null in the following method
SCOBotUtil.addEvent(SB, 'load', function (e) { // in 4.x.x
// SCOBot already took care of connection to the LMS and Initialize!
// Do everything else you would do to fire up or resume your content here.
var suspendData = getLMSValue("cmi.suspend_data");
console.log(`From Scobot Js = ${suspendData}`);
return false;
});
But when I again refresh the page using CTRL+F5 it works fine. Also, after launching the course very first time and then I close the window and start the course again it works fine.
my question is why I am getting suspended data null after launching course very first time and then do a hard refresh without closing the course window? It should give me suspended data
I am using the scobot js for initializing and launching scorm based course. I am having the following issue when I try to get suspended data.
when the course is launched very first time the suspended data is null and as soon as the course started I save the suspended data using js and it is successfully saved. The issue occurs when I don't close the course window and just refresh it with CTRL+F5. Then I get suspended data null in the following method
But when I again refresh the page using CTRL+F5 it works fine. Also, after launching the course very first time and then I close the window and start the course again it works fine.