Open MobileD3v3l opened 5 months ago
Hi,
It's possible to detect clicks on links inside a website and block the navigation.
Something like:
shouldOverrideUrlLoading: (controller, url) async { if (url.startsWith('http://') || url.startsWith('https://')) { if (await canLaunch(url)) { await launch(url); return true; // Prevent navigation within WebView } } return false; // Allow navigation within WebView },
It looks like you need a blacklist, and I will consider adding this feature next.
Hi,
It's possible to detect clicks on links inside a website and block the navigation.
Something like: