I am using @telegram-apps/sdk to develop a Telegram mini app on my H5 page. However, the behavior of openLink is inconsistent on Android and iOS phones. On iOS, calling openLink opens the external browser Safari, but on Android phones, calling openLink does not open the external default browser! Why is this happening, please help me! Below is the code for calling openLink:
import { init, TelegramWebApps, isMiniAppSupported, shareURL, retrieveLaunchParams, openLink, openTelegramLink, } from "@telegram-apps/sdk";
// Unable to open external links on Android phones.
openLink("https://....", {
tryInstantView:false
}
To Reproduce
Steps to reproduce the behavior:
Open the Telegram app on your Android phone.
Launch my Telegram mini app.
Tap the button to invoke the openLink method.
Instead of opening the external link, the link opens within the current Telegram interface.
Expected Behavior
I want to use openLink in Telegram on Xiaomi's Android devices to open external browsers instead of the internal browser.
Telegram Application
Telegram for Android
Describe the Bug
I am using @telegram-apps/sdk to develop a Telegram mini app on my H5 page. However, the behavior of openLink is inconsistent on Android and iOS phones. On iOS, calling openLink opens the external browser Safari, but on Android phones, calling openLink does not open the external default browser! Why is this happening, please help me! Below is the code for calling openLink:
import { init, TelegramWebApps, isMiniAppSupported, shareURL, retrieveLaunchParams, openLink, openTelegramLink, } from "@telegram-apps/sdk";
// Unable to open external links on Android phones.
openLink("https://....", { tryInstantView:false }
To Reproduce
Steps to reproduce the behavior:
Expected Behavior
I want to use openLink in Telegram on Xiaomi's Android devices to open external browsers instead of the internal browser.