You need to sign in to do that
Don't have an account?
Amith Kumar 7
how to detect user has pressed back button in mobile app
I have been developing lwc component for salesforce mobile. I would like to know the code on how to know user has pressed back button
Try below snippet of JS.
Please mark as Best Answer if above information was helpful.
Thanks,
Thanks for your reply. I need to write a custom logic when user clicks back button on the top left. Please find the attached screenshot highlighted in yellow color.
Thanks,
Amith Kumar