I want to close webview when backpressed on second last page, to avoid white screen. How is it possible?

This is the solution to avoid white screen on webview when back pressed. but my home url is a redirect url and so this solution is not working for me.

Is there way to close to the app on the second last of webview or anyone has a smarter/better solution?

1 Like