79229666

Date: 2024-11-27 09:39:30
Score: 1.5
Natty:
Report link

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

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: mtricktrick