question

andreas avatar image
andreas asked

Session Duration/ Focus change

Is there any way of calling this via Api calls if not using Unity SDK? Session lengths would be quite nice to track and also screen time (which is of course now 0 in the Dashboards for non Unity users).

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

As a matter of fact, the API call Unity SDK uses to track Session Duration/Focus change is Event/WriteEvents, there is nothing special about it. This is the code that Unity SDK uses to help to track Session Duration/Focus change: ScreenTimeTracker.cs. Therefore, in order to track this info in other SDKs, you can imitate what the Unity SDK does and implement it in other SDKs on your own.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.