By using the landing page action i am able to send the push message in foreground or background state and as mentioned in doc, the message is showing when the user is opening the app for the next time.
But i want to directly display the landing page container (without showing a In-app notification and to wait for user interaction to display it) when the app received it in foreground state and immediately (not to wait until the next launch)
In the docs it is mentioned that
If you need to display a Landing Page while the app is in the foreground state, replace the registry predicate associated with that action with one that allows foreground execution.
How to achieve this functionality, if possible can i have some sample code