Leanplum / Leanplum-iOS-SDK

Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.
https://www.leanplum.com
Apache License 2.0
71 stars 59 forks source link

Make all actions async to insert chained actions in correct order #561

Closed nzagorchev closed 1 year ago

nzagorchev commented 1 year ago
What Where/Who
JIRA Issue SDK-2920
People Involved @nzagorchev

Background

If there are multiple actions in the queue, the current IAM open action (runActionNamed:) needs to execute first, before other IAMs in the queue. This was not working correctly when using useAsyncDecisionHandlers - the next message from the queue was presented before the chained action was inserted at the front. This PR fixes that.

Implementation

Testing steps

Is this change backwards-compatible?