-
Notifications
You must be signed in to change notification settings - Fork 689
Closed
Description
URLs with protocols different from http:/https: don't work in Bot API's WebApps, breaking the user experience when the webapp includes features that require to open different apps (like sharing, playing media, etc...).
It doesn't work in anchor's href
, nor launched by a window.open()
, nor Telegram.WebApp.openLink()
.
Minimal reproducible html example, that on a normal mobile browser opens the whatsapp app (if installed), but doesn't work on Telegram:
<a href="whatsapp://send?text=Hello%20World">
Open WhatsApp
</a>
The issue can be easily fixed by handling url scheme intents when the webview wants to load a URL (Android example: https://stackoverflow.com/a/53059413/14175236)
ivanglushko, seriousidea, mike-petrov and Morb0
Metadata
Metadata
Assignees
Labels
No labels