Trigger visibility track in onResume
Author: nlgtuankietCreated Aug 13, 2020Updated May 28, 2024
The use case is I want to retrigger the visibility state changed callback when the user came back to a screen.
From an analytic point of view, in case we want to check a widget's full impression, when the user first enters the screen, if the widget is fully visible to the user then we fire one event. When the user came back to that screen, if they see that widget again, we should also fire another event. The idea is we want to track the click-through rate of a widget (click/view)
Current behavior, visibility fire only one, not fire again when the user came back to the screen (because the view has stayed at the same spot when the user left the screen, so no visibility state changed there)
Source: airbnb/epoxy