thingsboard / flutter_thingsboard_pe_app

ThingsBoard PE Mobile Application
https://thingsboard.io/products/mobile-pe/
BSD 3-Clause "New" or "Revised" License
87 stars 69 forks source link

Keeps loading the dashboard forever #89

Open leorenan opened 4 months ago

leorenan commented 4 months ago

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

1 2 3


Problem: keeps loading the dashboard forever

problem

ybeshkarov commented 4 months ago

Hello @leorenan,

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

leorenan commented 4 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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: demo@aviot.com 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 commented 1 month ago

@ybeshkarov

image

leorenan commented 2 weeks ago

@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 commented 2 weeks ago

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.