[Telegram Mini Apps] openLink
always opens external browser
#1670
Labels
bug
Something isn't working
openLink
always opens external browser
#1670
Checklist
Description
The
Telegram.WebApp.openLink
method on iOS always opens links in an external browser. There is no option to open the link in Telegram's in-app browser. In contrast, on Android, links open in the in-app browser by default.Telegram-iOS/submodules/WebUI/Sources/WebAppController.swift
Line 1140 in 45fa1b5
Expected Behavior
Links opened using the
openLink
method in the Mini App should open in Telegram's in-app browser on iOS if thetryBrowser
parameter is not explicitly specified, similar to the behavior on Android.Actual Behavior
Links opened using the
openLink
method on iOS are always opened in an external browser, with no option to use the in-app browser.Steps to Reproduce
openLink
method with any valid URL and anytryBrowser
value.Screenshots and Videos
ScreenRecording_01-12-2025.17-03-40_1.MP4
Environment
Device:
iPhone 15
iOS version:
18.1
App version:
11.6.1
The text was updated successfully, but these errors were encountered: