Application is started in background during the install Android 12

On Samsung devices with Android 12, the application is started in the background during the installation. On our application, this behavior leads to an issue when the application is installed using a Firebase Dynamic Link, i.e. the user doesn’t have the app installed and access a dynamic link that opens the Google Play Store to install the app. As the app is opened by the system during the installation process, the intent that contains the link gets consumed, so when the user actually opens the app we cannot redirect to the desired screen. Is there any approach to avoid this behavior?

Can you please explain the issue more details. Adding screenshot would be better.