Picture of Darshit Patoliya
How to configure xAPI-launch server with adapt-authoring?
by Darshit Patoliya - Wednesday, 10 January 2018, 12:00 PM
 

 

 

I have created one learning-course in adapt-authoring tool. After downloading it I am serving it statically via nginx server. But on launch of the course I am not able to post statements in LRS.

I have included/configured adapt-tkhub-xAPI and  adapt-trackingHubextension too. Following is configuration of both extensions

  • adapt-trakingHub

"_trackingHub": {
    "_browserChannel": {
      "_ignoreEvents": [],
      "_isLaunchManager": true,
      "_isStateStore": false,
      "_isStateSource": false,
      "_tracksState": true,
      "_reportsEvents": true,
      "_isEnabled": true
    },
    "_identifyById": true,
    "_courseID": "https://xxx.xxx.com/course/g/4/g4xpfhPTb8VR8xvNzMJX2D2m3pI404yH0zRJ1eLbeatkE2GefcoSPReeUnKDlp4O/#/",
    "_isEnabled": true
  },

  • adapt-tkhub-xAPI

"_tkhub-xAPI": {
    "_channels": [
      {
        "_generateIds": true,
        "_password": "",
        "_userName": "",
        "_endPoint": "",
        "_fullName": "",
        "_mbox": "",
        "_homePage": "",
        "_isFakeLRS": false,
        "_xapiLaunchMethod": "adlxapi",
        "_ignoreEvents": [],
        "_isMobile": false,
        "_isCachedLocally": false,
        "_isLaunchManager": true,
        "_isStateStore": true,
        "_isStateSource": true,
        "_tracksState": true,
        "_reportsEvents": true,
        "_isEnabled": true,
        "_name": "xapiLaunch"
      }
    ],
    "_isEnabled": true
  },

While launching course it displays following alert

 ERROR: could not get xAPI data from xAPI-launch server!. Tracking on this channel will NOT work!

How can I integrate xAPI-launch server in it? Is it mandatory to use xAPI-launch server?

Picture of jPablo Caballero
Re: How to configure xAPI-launch server with adapt-authoring?
by jPablo Caballero - Thursday, 11 January 2018, 9:58 PM
 

Hello,

No, it is not mandatory to use xAPI-launch server. Only if you use the adl-xapi-launch server (https://github.com/adlnet/xapi-launch) to launch your content you would need to use "adlxapi" launch method.

In other words, it all depends on how you will launch your content... you just need to tell the Adapt course to use the corresponding launch method. 

You can find more detailed information here: https://github.com/Acutilis/adapt-tkhub-xAPI/wiki/3.-Launch-methods