Skip to content

[Bug] Infinite loading in Telegram app when user is logged out #6

Description

@friendoye

Environment

  • Android OS version: Android 16
  • Devices affected: Pixel 6
  • Telegram Login Android SDK Version: 1.0.0
  • Telegram App Version: 12.6.4

Observed behavior and steps to reproduce

Preconditions: Installed Telegram App with logged our user

  1. Open the app that uses Telegram Login Android SDK
  2. Initialize SDK
TelegramLogin.init(
    clientId = <our client id>,
    redirectUri = "https://app<our app ID>-login.tg.dev/tglogin",
    scopes = listOf("profile"),
)
  1. Invoke TelegramLogin.startLogin(this@OurActivity)
  2. Telegram App has been opened with infinite loading
Image

Expected behavior

We expect to see either of 2 things:

  • User doesn't see infinite loading. Instead, user sees default login flow and later on successful login the dialog with Log in to <Our App> is showed
  • Popup dialog or toast with an error message "Please, log into Telegram before proceeding with Telegram Login to <Our App>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions