I remember that i found a topic similer to what im trying to resolve here before but i didn’t find it.
anyway, I tried my app on Testflight, Push notifications works fine, but when a notification screen appear and I click it, it takes my to the right screen, but after few seconds it links to the another screen in the App, I couldn’t figure out the reasen, I tested the app on iPhone 8 and iPhone 12 and both have the same problem.