Question

Message Sending Order for Crossrider appAPI.message.toAllTabs method

What is the crossrider message sending order and completion criteria for "appAPI.message.toAllTabs" method? For example, if I have 2 browser windows as below:

*Windows#1* [3 tabs: A1, A2 and A3]
*Windows#2* [2 tabs: B1 and B2]

Q.1: How does the method chooses which window to pick and then which tab to pick for sending messages?

Q.2: How do you know when the method has finished sending all the messages to all the tabs and the tabs have finished receiving the messages?

Was it helpful?

Solution

The order is browser specific and where feasible implemented using their native APIs. Hence, it's not possible to describe a single order for sending messages.

Additionally, the current appAPI.message.toAllTabs implementation does not provide a way to determine when the method has completed sending the messages, however, we are always interested in improving the experience for our users, and hence I have forwarded your suggestion on to our product team, who will consider it for future releases. Thank you for your input.

If you have a specific use-case and want to discuss it further in private, please feel free to email our support (support@crossrider.com).

[Disclaimer: I am a Crossrider employee]

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top