_satellite.track as a synchronous call | Community
Skip to main content
June 7, 2017
Solved

_satellite.track as a synchronous call

  • June 7, 2017
  • 1 reply
  • 3012 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by jantzen_b

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

1 reply

jantzen_b
Adobe Employee
jantzen_bAdobe EmployeeAccepted solution
Adobe Employee
June 7, 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