I’m facing an issue with a WebView implementation in my app.
I have a PHP page hosted on a server that includes a link to open WhatsApp (for sending a message). When I open this page in a normal mobile browser, it works perfectly—it opens WhatsApp and prepares the message as expected.
However, when I load the same PHP page inside a WebView in my app, clicking the WhatsApp link does nothing (or it doesn’t open WhatsApp).
What I’ve tried:
Question:
How can I enable WebView to properly open WhatsApp links (e.g., https://wa.me/... or intent:// links)?
Do I need to handle this differently inside WebView?
I have a PHP page hosted on a server that includes a link to open WhatsApp (for sending a message). When I open this page in a normal mobile browser, it works perfectly—it opens WhatsApp and prepares the message as expected.
However, when I load the same PHP page inside a WebView in my app, clicking the WhatsApp link does nothing (or it doesn’t open WhatsApp).
What I’ve tried:
- The same URL works fine outside WebView (in Chrome or other browsers)
- The issue only happens inside WebView
Question:
How can I enable WebView to properly open WhatsApp links (e.g., https://wa.me/... or intent:// links)?
Do I need to handle this differently inside WebView?