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

Keeps loading the dashboard forever #89

Open
leorenan opened this issue May 7, 2024 · 12 comments
Open

Keeps loading the dashboard forever #89

leorenan opened this issue May 7, 2024 · 12 comments

Comments

@leorenan
Copy link

leorenan commented May 7, 2024

The application is already in the Apple store using TestFlight
When installing and running for the first time the application works normally, but when it is closed and opened again it keeps loading the dashboard forever. Even after closing the session the problem persists

Environment

  • Thingsbord Cloud
  • Iphone 12 Mini
  • iOS 17.4.1
  • XCode 15.3
  • Flutter 3.19.6
  • Build in Code Magic

1
2
3


Problem: keeps loading the dashboard forever

problem

@ybeshkarov
Copy link
Contributor

ybeshkarov commented May 9, 2024

Hello @leorenan,

Thank you for reporting this issue. We are aware of it and are actively working on a fix.

@leorenan
Copy link
Author

leorenan commented May 9, 2024

Hello @leorenan,

Thank you for reporting this issue. We are aware of it and are actively working on a fix.

Hello @ybeshkarov

I am available for testing and validating the problem

Thank you very much

@leorenan
Copy link
Author

Hello @ybeshkarov ,

I updated to the new version 1.2.0 of the Things Board APP PE application, but I still have the same problem.

Another important point is that we are getting the same Android problem with Samsung smartphones like S24, A53, and Xaomi

Would it be possible to prioritize the resolution of this problem, or some direction?

@ybeshkarov
Copy link
Contributor

Hello @leorenan,

Since the dashboard is merely a web view and the mobile device does not directly control its loading, I suggest you hide the loading indicator to see what's truly occurring.

To do so you need to comment on 484 - 504 code lines here lib/modules/dashboard/dashboard.dart

                if (!UniversalPlatform.isWeb)
                  TwoValueListenableBuilder(
                    firstValueListenable: dashboardLoading,
                    secondValueListenable: dashboardActive,
                    builder: (context, loading, active, child) {
                      if (!loading && active) {
                        return const SizedBox.shrink();
                      } else {
                        var data = MediaQuery.of(context);
                        var bottomPadding = data.padding.top;
                        if (widget._home != true) {
                          bottomPadding += kToolbarHeight;
                        }
                        return Container(
                          padding: EdgeInsets.only(bottom: bottomPadding),
                          alignment: Alignment.center,
                          color: Colors.white,
                          child: TbProgressIndicator(tbContext, size: 50.0),
                        );
                      }
                    },
                  ),

@diegus22
Copy link

diegus22 commented Jun 21, 2024

I am experiencing a similar issue with the latest version of Thingsboard PE platform (3.7.0PE) and the latest release of the Flutter code (1.2.0). Despite modifying the code as suggested by @ybeshkarov, the behavior remains the same. The dashboard loads the first time but then gets stuck with the loading animation (three moving dots).

https://apps.apple.com/es/app/ingeniatic-plataforma-iot/id6502765600
https://play.google.com/store/apps/details?id=iot.ingeniatic.es&pli=1
user: [email protected]
pass: demo2022

In the Flutter debug console, I see the following messages when connecting my iPad via USB:

[quic] quic_crypto_queue_append not enqueuing more packets (max 5 reached)
[quic] quic_conn_process_inbound [C5.1.1.1:2] [=e223d0faf946470b] unable to parse packet
[quic] quic_crypto_queue_append not enqueuing more packets (max 5 reached)
[quic] quic_conn_process_inbound [C7.1.1.1:2] [=edb92f6aaaef7ad] unable to parse packet
[ProcessSuspension] 0x14633d7e0 - TimedActivity:activityTimedOut:
Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

Could you provide any guidance or solutions for this issue?

@leorenan
Copy link
Author

leorenan commented Aug 8, 2024

@ybeshkarov

image

@leorenan
Copy link
Author

leorenan commented Aug 20, 2024

@ybeshkarov Is there any forecast for releasing the new version with the correction of this problem?

Are these fixes in the dev branch? I can help validate

@ybeshkarov
Copy link
Contributor

ybeshkarov commented Aug 21, 2024

These fixes are in the dev branch, and the platform fix is available here: PR #11326. You'll need to build ThingsBoard locally as well to verify.

Additionally, make sure that thingsboard_client also points to the dev branch to build the app.

@ybeshkarov
Copy link
Contributor

Hello @leorenan,

please recheck this issue with the 1.3.0 release.

@leorenan
Copy link
Author

Hello @ybeshkarov

I tested it, but it presented another problem of incompatibility with PaaS.

How can I solve this problem?

image

@ybeshkarov ybeshkarov reopened this Oct 10, 2024
@ybeshkarov
Copy link
Contributor

Hello @leorenan,

Regarding why you see this message I answered there #167

For PaaS you can download our mobile app https://apps.apple.com/us/app/thingsboard-cloud/id6499209395 and check it there.

@ybeshkarov
Copy link
Contributor

Is it still actual?

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

3 participants