Upgrading from 4.x

The current SDK accepts every option, method and event that 4.x did, so an existing integration keeps working without code changes. A few behaviours did change. Check this list if you wrote your integration against 4.x, especially if you styled AutoProctor's report.

To use 5.0.0, set var apVersionNum = '5.0.0' before the ap-entry.js tag. See Versions & Installation.

Monitor tracking is off by default

Multiple-monitor tracking now only runs when you ask for it, and when it runs it blocks the candidate instead of logging:

  • If you never set a monitor option and were on 4.5.0 or earlier: those versions detected a second monitor by default and logged it in the report. Now a second monitor is neither blocked nor recorded. Set preventMultipleMonitors: true if you want it.
  • If you pass detectMultipleScreens: true: it is now an alias of preventMultipleMonitors, so the candidate is blocked until the second monitor is disconnected. Before, they were warned and could continue.
  • Evidence codes 5007 and 5008 are no longer produced; a blocked start records 5014 and a monitor connected mid-test records 5013.

Replace detectMultipleScreens with preventMultipleMonitors: true if you want blocking, or remove it if you don't.

Twice as many random photos

The default numPhotosAtRandom is now 50 (it was 25). If you rely on the default, reports show twice as many random photos. Set numPhotosAtRandom: 25 to keep the old number.

The report was rebuilt

The report from .showReport() and the table from .showResults() were rebuilt. Their options and container IDs are unchanged, but the HTML inside the containers is different. If your stylesheet targets elements inside AutoProctor's report, check it; styling your own container elements is unaffected. To change colours, use theme.

Candidate recording streams live

If you were on 4.7.x or earlier, candidate recording (recordTestTaker) now streams to AutoProctor's recording service during the test instead of uploading the video in parts, and the "Finalizing Data" wait on submit is gone. 4.8.0 already works this way. Your existing event handlers need no change.

Blocked networks stop the test from starting

Before the test starts, the SDK checks that the candidate's network can reach AutoProctor's upload servers and, with recordTestTaker on, the recording service. In 4.x a blocked network let the test start and the evidence was silently lost. Now the candidate is asked to switch networks (error 4021) and .start() waits until a retry succeeds.

Smaller changes

Area4.xNow
Library download fails during .setup().setup() never resolved.setup() resolves, apSetupCompleted does not fire, error 4018 fires and .start() returns false
.start() / .stop()resolved to false on some failures and to nothing otherwisealways resolve to true / false; see The Lifecycle
.showReport() with every section offerror 4016error 1058
apErrorEvent errorDetailssometimes HTMLalways plain text
Error 4016only report misconfiguration (the iOS warning fired no event)only the dismissable "Incompatible Device" warning for iOS older than 14.3 on the auxiliary device
Automatic stop of monitoring6 hours5 hours
Reusing an instance after .destroy().setup()/.start() started a new session on the same instancerejects with an Error; create a new AutoProctor instance instead

As in 4.x, apInstanceDestroyed fires before .destroy() returns, so register the listener first.