-
Notifications
You must be signed in to change notification settings - Fork 26
Description
When using this package with @telegram-apps/sdk version 3.x in a Nuxt.js project, the following issues occur:
I first installed @telegram-apps/sdk, then analytics
– when trying to initialize analytics, I keep getting an error saying that the project is opened outside of Telegram (even though it is opened inside Telegram).
I tried installing the package in a separate node_modules directory to avoid conflicts. Analytics started working, but the functionality of @telegram-apps/sdk stopped working:
– the back button doesn't work
– the viewport doesn't work
I suspect this is happening because there are two versions of @telegram-apps/sdk, which causes some parts to break.
In the code, @telegram-apps/sdk is used once in
\src\controllers\Session.controller.ts:
import { retrieveLaunchParams } from '@telegram-apps/sdk';
But according to the SDK documentation, to get retrieveLaunchParams, you should use bridge:
https://docs.telegram-mini-apps.com/packages/telegram-apps-bridge/launch-parameters