poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-812802241
Did some quick testing on https://github.com/apache/incubator-flagon-useralejs/tree/flagon-userale-50 BLUF: flipped out visibilitychange for pagehide listener. Seeing both 'submit' and end of lifecyce events (click before page navigation) events as expected everytime. Did about 2 sessions on Chrome and Safari each. Confirm visibilitychange handler will not work in safari. Looking at @UncleGedd's unit test for https://github.com/apache/incubator-flagon-useralejs/tree/flagon-userale-50, its a test to see if the log queue is flushed when a given event fires. If I can get the test to work on pagehide, we might have a working unit test, skirting the difficulty to mock navigation.sendBeacon. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org