Help with getProductInfo

Hi, I'm trying to encrypt a token before it is stored and though about using the device serial number as the key, which looks like it's returned by the call getProductInfo. However, every attempts I made to retrieve that info has failed with an object not found. The doc isn't very clear on how to use it and there is nothing in the samples either :-(

This is the code

var productInfo = AntPlus.getProductInfo(null);
var serial = productInfo.serial;

with a using "Toybox.AntPlus;" at the top

It fails with

Error: Symbol Not Found Error
Details: Could not find symbol 'getProductInfo'

Thanks.