Hi!
Anyone here working with @tma.js/sdk-react library with async option for loading?
(usually for using with next.js that do SSR)
Because It is working fine with telegram on iphone, pc, ipad, etc... but on android most of the times I got a timeout error.
Jan 3, 2024, 2:35 PM
I remeber in tma doc , maybe in platform part , siad this client have diffrent approach in dev , as these are diffrent project ,and this fact should be considered
Jan 3, 2024, 2:47 PM
This is the documentation: https://docs.telegram-mini-apps.com/packages/typescript/tma-js-sdk-react#launch-parameters
As I am investigating seems to me a "bug/no well supported feature", the async option.
Basically needs to wait for window.Telegram.WebApp to have a value. Maybe something is slower in android and generates that timeout.
I've also reported the issue here: https://github.com/Telegram-Mini-Apps/tma.js/issues/215
I am using latest version 1.1.1
As I am investigating seems to me a "bug/no well supported feature", the async option.
Basically needs to wait for window.Telegram.WebApp to have a value. Maybe something is slower in android and generates that timeout.
I've also reported the issue here: https://github.com/Telegram-Mini-Apps/tma.js/issues/215
I am using latest version 1.1.1
Jan 3, 2024, 3:28 PM