Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Sign in to Mobile App #175

Open
WillieSpence opened this issue Oct 15, 2024 · 14 comments
Open

Unable to Sign in to Mobile App #175

WillieSpence opened this issue Oct 15, 2024 · 14 comments

Comments

@WillieSpence
Copy link

Hi.

Since today, I'm unable to sign into my Thingsboard Mobile App. I did notice there were maintenance ongoing, but after maintenance window still unable to login in.

My app very briefly logs in and then logs me out saying session has expired.

I'm running version 1.2.0 of the Mobile App against ThingsBoard Cloud

Were there breaking changes or something during maintenance that causes the app to break?

Regards
Willie

@ybeshkarov
Copy link
Contributor

Hello,

Please try one more time. I just checked with 1.2.0 and all good for me.

@WillieSpence
Copy link
Author

Hi.
Unfortunately still same issue for me. I haven't made any changes to my app in the last 4 months. Only suddenly today it start giving this issue and many of my customers are complaining as well with same issue.

Sometimes I get Unauthorised once I log in and other times session expired.

I can log in fine via the Thingsboard Cloud portal. Its only the Mobile App seems to give this issue.

@Tomi05-k
Copy link

Same problem for me.
No login possible after the update to ThingsBoard 3.6.0.
Also problems with the public dashboards.
Here is the issue:
Public Dashboard access-forbidden since Update 3.8.0 #11836

@ybeshkarov
Copy link
Contributor

Could you provide a screenshot or a screen recording with an issue where you cannot login? @Tomi05-k

@WillieSpence
Copy link
Author

@ybeshkarov , just to update from my side. Yesterday I spent upgrading our app to 1.3.0. Tested fine on both Android and iOS simulators and have just released the IPA on the Apple App store. So far so good, this seems to have resolved the issue for my iOS users. I'm just waiting for Google Play to release / approve the app for distribution then hopefully the Android customers will also be resolved.

So it seems something to do with 1.2.0 of the mobile app and the latest version of the thingsboard cloud platform that caused the issue...

Will keep this thread posted once the 1.3.0 is released on Google App store.

@Tomi05-k
Copy link

oke all clear 👍🏼
I'll give that a try too.
But do you also have problems with opening public dashboards?

@WillieSpence
Copy link
Author

Nope, unfortunately I don't have any public dashboards, only private dashboards that I share via dashboard groups.

@leorenan
Copy link

@ybeshkarov , just to update from my side. Yesterday I spent upgrading our app to 1.3.0. Tested fine on both Android and iOS simulators and have just released the IPA on the Apple App store. So far so good, this seems to have resolved the issue for my iOS users. I'm just waiting for Google Play to release / approve the app for distribution then hopefully the Android customers will also be resolved.

So it seems something to do with 1.2.0 of the mobile app and the latest version of the thingsboard cloud platform that caused the issue...

Will keep this thread posted once the 1.3.0 is released on Google App store.

I'm having the same problem and I've already published it to my android clients and it's still giving me the same error
It's been fixed for iOS and a new bug has been introduced for Android
Could you share the versions of flutter, Xcode, pod, android sdk?

@ybeshkarov
Copy link
Contributor

@leorenan did you use the latest 1.3.0 mobile release?

@leorenan
Copy link

@ybeshkarov

I'm using version 1.3.0. I've even just received a rejection from Google in the review reporting the same problem.
Could you share the versions of flutter, xcode, por and ide Android you're using as well, to try and help in some way.

@ybeshkarov
Copy link
Contributor

ybeshkarov commented Oct 18, 2024

It could be that the dart client just cached for you and you facing this issue.
Run this command to clean the cache pub dependencies you have.
dart pub cache clean

Not sure how it helps, but

  • The officially supported flutter for 1.3.0 is 3.22 so I use this version
  • Xcode 15.4
  • pod 1.15.2
  • Android Studio Hedgehog | 2023.1.1 Patch

@leorenan

@ybeshkarov
Copy link
Contributor

Is it still actual?

@leorenan
Copy link

@ybeshkarov

I'm still having the same problem, practically all Samsung phones are having the same problem even when updating to 1.3.0
The problem started happening after the update of the thingsboad cloud platform

@ybeshkarov
Copy link
Contributor

ybeshkarov commented Oct 30, 2024

In the pubspec.yaml change thingsboard_client: ^1.3.1 to thingsboard_client: 1.3.1. This requires dart to use exactly this version of the thingsboard client, then run flutter clean and rebuild your project.

@leorenan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants