clever-father-1415
10/31/2023, 10:43 PMcontext.os.name. This field is empty, since the events are triggered by the web and not by Android or iOS. The event source is Javascript SDK What should I do?
{
"error": "Platform name is missing from context.os.name"
}millions-activity-52391
10/31/2023, 10:43 PMhundreds-lifeguard-65770
11/01/2023, 12:26 AMhundreds-lifeguard-65770
11/01/2023, 12:27 AMmillions-activity-52391
11/01/2023, 9:11 AMclever-father-1415
11/01/2023, 2:12 PMhundreds-lifeguard-65770
11/01/2023, 2:14 PMhundreds-lifeguard-65770
11/01/2023, 2:14 PMhundreds-lifeguard-65770
11/01/2023, 2:15 PMhundreds-lifeguard-65770
11/01/2023, 2:15 PMclever-father-1415
11/01/2023, 2:22 PMhundreds-lifeguard-65770
11/01/2023, 2:24 PMhundreds-lifeguard-65770
11/01/2023, 2:26 PMclever-father-1415
11/01/2023, 2:26 PMhundreds-lifeguard-65770
11/01/2023, 2:26 PMhundreds-lifeguard-65770
11/01/2023, 2:27 PMhundreds-lifeguard-65770
11/01/2023, 2:27 PMhundreds-lifeguard-65770
11/01/2023, 2:27 PMhundreds-lifeguard-65770
11/01/2023, 2:33 PMclever-father-1415
11/01/2023, 2:43 PM{
"error": "Missing required value from \"context.device.advertisingId\""
}
{
"error": "Missing required value from \"context.device.attTrackingStatus\""
}hundreds-lifeguard-65770
11/01/2023, 2:46 PMmillions-activity-52391
11/01/2023, 3:38 PMmillions-activity-52391
11/01/2023, 3:56 PMmillions-activity-52391
11/01/2023, 4:18 PMclever-father-1415
11/01/2023, 4:22 PMcontext.os.name
import { UAParser } from "@rs/userAgentParser/v1";
export function transformEvent(event, metadata) {
const userAgent = event.context?.userAgent;
if (userAgent) {
const parser = new UAParser();
const parsedUserAgent = parser.setUA(userAgent).getResult();
event.context.os = parsedUserAgent.os;
event.device = parsedUserAgent.device;
}
return event;
}
But now the problem is that context.device is empty and I have these errors
{
"error": "Missing required value from \"context.device.advertisingId\""
}
{
"error": "Missing required value from \"context.device.attTrackingStatus\""
}millions-activity-52391
11/01/2023, 4:28 PMhundreds-lifeguard-65770
11/01/2023, 4:29 PMclever-father-1415
11/01/2023, 4:30 PMmillions-activity-52391
11/01/2023, 4:31 PMclever-father-1415
11/01/2023, 4:35 PMmillions-activity-52391
11/01/2023, 4:38 PMmillions-activity-52391
11/01/2023, 5:07 PMclever-father-1415
11/01/2023, 5:10 PMmillions-activity-52391
11/06/2023, 11:31 AM