SolarEngine SDK provides an interface for setting the OAID, making it convenient for developers to integrate flexibly. Normally, the SDK will automatically obtain the OAID with no need to set manually. When manually set, it will be saved and will not be modified or deleted before the next input. If set repeatedly, only the last provided value will be retained.
Function
export function setOaid(oaid:string);
Parameter | Parameter Meaning | Parameter Type | Required |
---|---|---|---|
oaid | OAID of the device | String | NO |
Sample Code
// Please call before SDK initialization.
let oaid:string = "your oaid";
SolarEngine.setOaid(oaid);
Note:
If developer already set isGDPRArea(true) during SDK initialization, this method will not work.