[BUG]: User Code is loading...
Checklist
- [x] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
- [x] I have read the FAQ and my problem isn't listed.
- [x] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- [x] This issue contains only one bug.
Affected version
30.55 BETA
Device Type
Smart TV/Box
Affected Android
Android TV 14 Xiaomi TV box
Steps to reproduce the bug
- Go to Remote Control
- Activate Remote Control and give all permissions
- Go to Add device
- Stuck on "User Code is loading...". No code is showing.
Actual behavior
I already signed in with my Google account, but when casting from youtube, nothing happened. I even disabled YouTube. When i cast from youtube, i want Smarttube to be the default app being cast to. Its just stuck and never shows code. I tried with both beta and stable
Additional information
Use the stable version. That works on my side.
@musicadi what works? Can you generate a user code? Or can you just cast by being logged in with google account? Mine just casts to youtube by default, and if youtube is disabled, then it keeps trying to connect but never casts to smarttube
I'm experiencing the same issue since installing the app with the new key this morning
Real casting only works with rooted devices and adding a helper-app which redirects the casting to smarttube. It never worked out of the box. This "generating code" is for coupling (linking) both the Youtube (or ReVanced) app on the phone to Smarttube (this is different from real casting). The phone app becomes sort of a remote control. This works for me in the ReVanced app and GBoard keyboard on phone.
@musicadi what works? Can you generate a user code? Or can you just cast by being logged in with google account? Mine just casts to youtube by default, and if youtube is disabled, then it keeps trying to connect but never casts to smarttube
The app works. The beta was automatically removed from my MiBox 3, so I downloaded the latest stable version (30.56), installed it, restored from backup and all looks good.
However, I just checked the version on my MiBox 4, which was not removed (stable), and it says 30.19. Update from within the app doesn't work.
EDIT: LOL, I just realized this is not the code you get when trying to login.
However, I think your issue is because of this:
https://github.com/yuliskov/SmartTube/releases/tag/notification
Oh, so you think its unable to generate the code because of the new signature?
Thanks
@musicadi what works? Can you generate a user code? Or can you just cast by being logged in with google account? Mine just casts to youtube by default, and if youtube is disabled, then it keeps trying to connect but never casts to smarttube
The app works. The beta was automatically removed from my MiBox 3, so I downloaded the latest stable version (30.56), installed it, restored from backup and all looks good.
However, I just checked the version on my MiBox 4, which was not removed (stable), and it says 30.19. Update from within the app doesn't work.
EDIT: LOL, I just realized this is not the code you get when trying to login.
However, I think your issue is because of this:
https://github.com/yuliskov/SmartTube/releases/tag/notification
Real casting only works with rooted devices and adding a helper-app which redirects the casting to smarttube.
Thanks
Is there a guide for this?
The issue is also reproducible on version 30.56.
Real casting only works with rooted devices and adding a helper-app which redirects the casting to smarttube.
Thanks
Is there a guide for this?
I stand corrected 😬 I now see that when choosing Cast in Youtube or ReVanced you have the option for "Devicename (Smarttube)". I never saw that before. Maybe because I did link them now. Not sure how long this option was available already. Previous times I looked at casting from YouTube, you needed a small program which could catch the intent for YouTube (on the TV) and pass it on to Smarttube. But that doesn't seem te be needed anymore.
Seeing the same behaviour on my CCwGTV: when I try to pair with the updated app (via revanced on my phone), it just sits there with the text "User Code is loading..." on-screen on my TV.
I thought my pi-hole may be at fault, disabled it for another test, rebooted the CC (to force clear any DNS caching there may have been), same result: no code ever appears.
For reference, every time I've had to pair in the past, I've never had to wait (put differently, I had no idea "User Code is loading" was a message that could be displayed, because the pairing code was always there nearly instantly).
Same problem here. I'll provide some information.
I have two TVs. On both, I have completely uninstalled the old version and installed the new version with the new keys.
Well, in one of them, the cast works perfectly, without installing anything. And in the other, it doesn't. There's no way.
Perhaps it's a problem with Android versions? The TV that works has Android 12. The TV that does NOT work has Android 14.
The strange thing is that on the TV with Android 14, casting worked with the old app. It stopped working when I updated the app with the new keys.
I hope this information helps to resolve the issue.
I am on the Google TV streamer. I am experiencing this problem under the remote control settings as well.
On both 30.56 beta and 30.56 stable.
This also worked for me prior to the new keys.
I'm facing the same issue on 30.56 stable after clearing the previous app's data and uninstalling it. I am able to log into an account but not generate the remote control linking code. I didn't backup the settings of the previous app T_T.
Perhaps it's a problem with Android versions? The TV that works has Android 12. The TV that does NOT work has Android 14.
The strange thing is that on the TV with Android 14, casting worked with the old app. It stopped working when I updated the app with the new keys.
That's good info. My Onn device with Android 14 doesn't work as well. My old Fire Stick with FireOS 6.7 works fine
Interesting behaviour I've seen while trying to get logs: I cloned the repo locally, built it, and ran the result via Android Studio on my Chromecast, the idea being I could both get logcat logs easier (better filtering options in the IDE) and try to find where it's going wrong in the code. I didn't get that far though since it worked using my personal build! I switched over to the non-beta (from kutt.it, grabbed Friday afternoon, UTC-4) and it was still broken.
If the beta build (as of Friday afternoon, UTC-4) is not the same code as yesterday's HEAD commit (I cloned it yesterday), it means that the fix is already done but hasn't been released yet.
If the beta build is the same code though, that's where it gets weird: both re-signed stable and beta hit this bug on Friday, but a beta build using the same code that I did myself works? Doesn't make sense.
~Getting logs from the current stable build soon.~ Nothing in the logs, just stuff related to graphics, widgets, layers, etc (all UI stuff, in other words), nothing relevant.
I'm also affected by the issue, commenting to track the updates 😀
Getting ahead of the problem before it starts: people, use the star/watch/whatever feature it is so that we don't end up with a billion "me too" comments and the bazillion emails we'll all get from new comments being added.
Please, I beg of everyone stumbling across this issue, as someone also interested in tracking it, don't comment unless you have something substantive to add (ie logcat logs, a specific line of code, etc). The watch/star/whatever will notify you about updates. If those updates are noisy, you lose all benefit of tracking this issue, so, just, do the star thing, yeah? I don't think anyone is interested in filtering out a billion "me too" emails :smile:
The issue is also reproducible on version 30.56.
I can confirm I have the same issue on this version with the new signature
Hopefully these two commits already on master (Dec 5, 2025) fix this issue:
- f753d822a - Added android:foregroundServiceType="connectedDevice" to RemoteControlService (Android 12+)
- 6202da033 - Added FOREGROUND_SERVICE_CONNECTED_DEVICE permission (Android 14+)
Hopefully on version 30.57 🤞
Hopefully these two commits already on master (Dec 5, 2025) fix this issue:
- f753d822a - Added android:foregroundServiceType="connectedDevice" to RemoteControlService (Android 12+)
- 6202da033 - Added FOREGROUND_SERVICE_CONNECTED_DEVICE permission (Android 14+)
Hopefully on version 30.57 🤞
Very nice, thanks for the update
Confirmed this issue is still present on Android 14 using 30.59 update
Confirmed this issue is still present on Android 14 using 30.59 update
Im also seeing it in 30.59 on android 14. The latest update doeant seem to have fixed it.
there's a small chance that the moving ipv4 before ipv6 may help. Implemented in the testing build https://github.com/yuliskov/SmartTube/releases/download/latest/SmartTube_stable_testing.apk
I installed the testing build and rebooted my Chromecast HD, but it still gets stuck on User Code is loading when trying to add a device to remote control.
@lemonnade0 thanks for the feedback
@lemonnade0 a questions if you don't mind. Does the app can load at least something? E.g. search results and open a video? How long this been happening, since moving to the new signature? I've increased target sdk since then.
I can use the app without any issues besides this one. I can use the search, log in (I logged in using the qr code), and access recommendations and history. I can also watch videos. The only problem I noticed is that I'm unable to add my phone to remote control because it gets stuck on 'User Code is loading'. It used to work on the old version before the signature change. I was on version 29.83 before updating if that changes anything.
@lemonnade0 a questions if you don't mind. Does the app can load at least something? E.g. search results and open a video? How long this been happening, since moving to the new signature? I've increased target sdk since then.
I have updated the app with this link you provided and still fail. Everything works fine, just the code is never generated.
I also loaded the 30.60 test APK and the same results as robespain.
Since you mentioned IPv6 it may or may not be worth noting that I had IPV6 disabled completely on my LAN before this test (not just DHCP.) I turned it on and reinitialized the network interface on the device before trying to generate any codes.
- Google TV Streamer/kirkwood
- Android 14
- Patch level Aug #1st
- Build UTTK.250729.004
- 5.15.180-android14-11-gf55c0c36ffcd-ab13512086 (build-user@build-host) (Android (10087095, +pgo, +bolt, +lto, -mlgo, based on r487747c) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362), LLD 17.0.2) # 1 SMP PREEMPT Fri May 16 23:04:16 UTC 2025
Temporarily lowered the trargetSdk version to 26 (as was before). This should definitely fix the bug, but just to be sure. 30.63 test APK https://github.com/yuliskov/SmartTube/releases/download/latest/SmartTube_stable_testing.apk