Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit is happening now. Discover what's next in customer experience.
SOLVED

_satellite.track as a synchronous call

Avatar

Level 1

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?

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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