_satellite.track as a synchronous call

scott1702

06-06-2017

I've run into an issue on iOS devices trying to track a direct call rule on the native 'pagehide' event. The issue being that Safari will only fire a network call if the request is synchronous (Javascript - AJAX call within a unload/pagehide event - Stack Overflow ). By default _satellite.track() is an asychronous call, but I'm wondering if anyone is aware of how to make this synchronous to resolve my issue?

Accepted Solutions (1)

Accepted Solutions (1)

jantzen_belliston-Adobe

Community Manager

07-06-2017

Hi,

Direct call rules are in sync with the thread executing it. So if it is called in an async call back, it will not be synchronous. If it is called on an event handler, it will be.

Cheers,
Jantzen

Answers (0)