Hello,
We're implementing the in-app messages and want to use custom actions to perform a specific task when the user taps the button. That task being opening the browser inside our app, that's why using the built-in link to web page action does not work for us. Another reason is that, sometimes, we want to populate the base URL we retrieve from the message before opening it.
To achieve this, we resorted to custom actions. I created a simple one where I set the action name to something we can identify within the app, like open_in_app_browser, and the action value to the desired URL, let's say https://google.com.
On the app, I'm detecting the open_in_app_browser action and retrieving the URL from the action value successfully. However, the in-app message doesn't dismiss when the button is tapped, which results in the message being on top of our app always:

That's not our desired behaviour, we want the message to close and do something with it when the button is tapped.
Is there a way to manually dismiss the message with a SDK call for iOS? I skimmed through the documentation, but couldn't find any.
I also tried to embed one action within another, where one is the custom action and the other is a close action, and vice versa, with no success.