flutter_thingsboard_pe_app icon indicating copy to clipboard operation
flutter_thingsboard_pe_app copied to clipboard

Keeps loading the dashboard forever

Open leorenan opened this issue 1 year ago • 11 comments

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

leorenan avatar May 07 '24 16:05 leorenan

Hello @leorenan,

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

ybeshkarov avatar May 09 '24 12:05 ybeshkarov

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 avatar May 09 '24 16:05 leorenan

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?

leorenan avatar Jun 14 '24 17:06 leorenan

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),
                        );
                      }
                    },
                  ),

ybeshkarov avatar Jun 17 '24 07:06 ybeshkarov

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?

diegus22 avatar Jun 21 '24 14:06 diegus22

@ybeshkarov

image

leorenan avatar Aug 08 '24 03:08 leorenan

@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

leorenan avatar Aug 20 '24 23:08 leorenan

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 avatar Aug 21 '24 10:08 ybeshkarov

Hello @leorenan,

please recheck this issue with the 1.3.0 release.

ybeshkarov avatar Sep 24 '24 13:09 ybeshkarov

Hello @ybeshkarov

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

How can I solve this problem?

image

leorenan avatar Oct 10 '24 02:10 leorenan

Hello @leorenan,

Regarding why you see this message I answered there https://github.com/thingsboard/flutter_thingsboard_pe_app/issues/167

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

ybeshkarov avatar Oct 10 '24 12:10 ybeshkarov