Abdur Rehman answer is correct but instead of removing it (because removing it will throw warning in console telling you to add it 'though can be ignored) just set it to false and it disables the back button so the user will have to either watch the entire ad or wait until they are allowed to exit after certain time has passed. This works as of 11/27/24
from: android:enableOnBackInvokedCallback="true"
to: android:enableOnBackInvokedCallback="false"
android -> app -> src -> main -> AndroidManifest.xml and this line should be under <application