Closed JinNguyen96 closed 1 month ago
If you see this output:
[Telegram.WebView] < receiveEvent back_button_pressed null
It means, you are using the Telegram SDK also. Remove the telegram-web-app.js
file, as it is not compatible with @telegram-apps/sdk
Telegram Application
Telegram for iOS, Telegram for macOS
Describe the Bug
I'm using @telegram-apps/sdk 2.4.0 for developing mini app with Nextjs 14. After mounting
backButton
and set callback foronClick
event, tapping on the button does trigger the event but the callback isn't calledDevices tested:
Iphone 15pro - BUG Macbook M3 Pro - BUG
To Reproduce
Steps to reproduce the behavior:
set up code like this
back_button_pressed
event is triggered:[Telegram.WebView] < receiveEvent back_button_pressed null
withoutclicked
textExpected Behavior
callback should be called and log
clicked
once the back button is clicked