microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
7.75k stars 1.63k forks source link

[org.telegram.messenger] retrieve OTP code via sms option not available in telegram #2033

Open soenggam opened 10 months ago

soenggam commented 10 months ago

Affected app Name: Telegram Package id: org.telegram.messenger

Describe the bug Telegram is a Instant Messaging Platform. The only way to to register and login Telegram is to using a phone number to retrieve OTP code. If you already have a Telegram account and Access to logined devices, Telegram will send OTP code to logined devices, but you can choose to get OTP code via sms too. But since Telegram added firebase authentication check before user request a OTP code,users won't be able to retrieve OTP code via sms if they don't have gms on their android devices. They could only check OTP code on other already logined device

I have tried Telegram with microG, "Tap to get a code via SMS" not available when using microG.

To Reproduce Steps to reproduce the behavior:

  1. Launch Telegram app
  2. Go to Login Page
  3. Type phone number and press login
  4. "Tap to get a code via SMS" not available

Expected behavior "Tap to get a code via SMS" option available

Screenshots

System Android Version: [10] Custom ROM: [microG AVD image]

microG microG Core version: 0.2.28.231657 microG Self-Check results: All ticked

Additional context Telegram Add firebase authentication: https://t.me/tginfoen/1598

ale5000-git commented 10 months ago

There are some improvements in the latest code (not released yet); for those that want to try there is the official nightly build.

soenggam commented 10 months ago

There are some improvements in the latest code (not released yet); for those that want to try there is the official nightly build.

i downloaded microg gmscore build from above link at UTC 13:00,13/9/2023, OTP code via SMS still not available image

GioPan04 commented 10 months ago

I might be wrong but in @soenggam 's screenshot Telegram is asking to get the code from the other Telegram app (probably you have the same account in another device). To get the code from SMS you have to click on "Didn't get the code?"

soenggam commented 10 months ago

I might be wrong but in @soenggam 's screenshot Telegram is asking to get the code from the other Telegram app (probably you have the same account in another device). To get the code from SMS you have to click on "Didn't get the code?"

Didn't get the code?" Is the option to confirm you didn't enter the wrong phone number. It is the only option to show when your device can't finish Firebase Authentication. On an original gms shipped device, "Tap to get a code via SMS" would be showed at the same location

GioPan04 commented 10 months ago

Just checked, you are right, sorry