flutter_thingsboard_pe_app icon indicating copy to clipboard operation
flutter_thingsboard_pe_app copied to clipboard

Unable to Sign in to Mobile App

Open WillieSpence opened this issue 1 year ago • 11 comments

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

WillieSpence avatar Oct 15 '24 08:10 WillieSpence

Hello,

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

ybeshkarov avatar Oct 15 '24 08:10 ybeshkarov

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.

WillieSpence avatar Oct 15 '24 08:10 WillieSpence

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

Tomi05-k avatar Oct 15 '24 16:10 Tomi05-k

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

ybeshkarov avatar Oct 16 '24 08:10 ybeshkarov

@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.

WillieSpence avatar Oct 16 '24 08:10 WillieSpence

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

Tomi05-k avatar Oct 16 '24 10:10 Tomi05-k

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

WillieSpence avatar Oct 16 '24 11:10 WillieSpence

@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?

leorenan avatar Oct 17 '24 23:10 leorenan

@leorenan did you use the latest 1.3.0 mobile release?

ybeshkarov avatar Oct 18 '24 08:10 ybeshkarov

@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.

leorenan avatar Oct 18 '24 12:10 leorenan

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 avatar Oct 18 '24 13:10 ybeshkarov

Is it still actual?

ybeshkarov avatar Oct 28 '24 14:10 ybeshkarov

@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

leorenan avatar Oct 29 '24 20:10 leorenan

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

ybeshkarov avatar Oct 30 '24 09:10 ybeshkarov