Giter VIP home page Giter VIP logo

flutter_thingsboard_app's Introduction

ThingsBoard Mobile Application is an open-source project based on Flutter

Powered by ThingsBoard IoT Platform

Build your own IoT mobile application with minimum coding efforts

Please be informed the Web platform is not supported, because it's a part of our main platform!

Resources

Live demo app

To be familiar with common app features try out our ThingsBoard Live mobile application available on Google Play and App Store

flutter_thingsboard_app's People

Contributors

backdraft007 avatar ikulikov avatar vvlladd28 avatar ybeshkarov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter_thingsboard_app's Issues

Execution failed for task ':qr_code_scanner:compileDebugKotlin'. --- while running flutter run

Hi I am using the following version of flutter
[√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [Version 10.0.22000.795], locale en-IN)
• Flutter version 3.0.5 at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f1875d570e (13 days ago), 2022-07-13 11:24:16 -0700
• Engine revision e85ea0e79c
• Dart version 2.17.6
• DevTools version 2.12.2

When I am running flutter run I am getting the following error.
e: C:\Users\admin\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (23, 1): Class 'QRView' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener
e: C:\Users\admin\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (217, 26): Null can not be a value of a non-null type String
e: C:\Users\admin\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (248, 26): Null can not be a value of a non-null type String
e: C:\Users\admin\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (301, 5): 'onRequestPermissionsResult' overrides nothing
e: C:\Users\admin\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRViewFactory.kt: (10, 1): Class 'QRViewFactory' is not abstract and does not implement abstract base class member public abstract fun create(p0: Context?, p1: Int, p2: Any?): PlatformView defined in io.flutter.plugin.platform.PlatformViewFactory
e: C:\Users\admin\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRViewFactory.kt: (13, 5): 'create' overrides nothing

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':qr_code_scanner:compileDebugKotlin'.

Compilation error. See log for more details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 20s

Can anyone let me know how to resolve this?

Diferent home dashborad App/web

I have the problem with the dashboards, if a client enters via the web, I want one of the dashboards to be opened directly, I configure this as the default dashboard in the client, but in the app, I do not want this to happen, I want them to appear dashboard icons, but if I apply a default panel to the client, this does not happen. Any idea?

Thanks!

APP is not working

I am trying log in into mobile app but after building app when I tried to run app, app is just loading and not moving in into login page.If it goes to the login page it is not going logging in even after given correct username and password. If I give wrong username or password , it shows username or password is incorrect.

Thingboard Version 3.4.4 CE
Browser: Chrome or Firefox Latest
APP IDE: Android Studio

Feature request - notifications to created alarms

The feature can be to notify the customers when the alarm is created in the thingsboard's dashboard. The notification could appear in the notification panel.
I would like to know if it can be done individually.

Not able to change the thingsboard Icon

I tried changing the images in the assets. also the checksum but for some reason I still see the old icons. Can anyone help me out with this issue or has anyone managed to fix this yet

Version issue

My TB version is 3.3.4-SNAPSHOT. Which commit version should I use for flutter_thingsboard_ app? In addition, Which version should I use for the thingsboard _client in pubspec.yaml? Thank you very much!

too many error with flutter 3.0.5 help me please

Running Gradle task 'assembleDebug'...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.6.1/lib/src/qr_code_scanner.dart:68:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addObserver(_observer);
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.6.1/lib/src/qr_code_scanner.dart:86:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.removeObserver(_observer);
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/infinite_scroll_pagination-3.1.0/lib/src/ui/paged_sliver_builder.dart:257:24: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance?.addPostFrameCallback((_) {
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math_fork-0.5.0/lib/src/widgets/selectable.dart:459:24: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance!.addPostFrameCallback((_) {
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math_fork-0.5.0/lib/src/widgets/selection/overlay_manager.dart:138:28: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    if (SchedulerBinding.instance!.schedulerPhase ==
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math_fork-0.5.0/lib/src/widgets/selection/overlay_manager.dart:140:26: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance!
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math_fork-0.5.0/lib/src/widgets/selection/web_selection_manager.dart:119:24: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance!
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math_fork-0.5.0/lib/src/widgets/selection/overlay.dart:141:26: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    if (SchedulerBinding.instance!.schedulerPhase ==
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math_fork-0.5.0/lib/src/widgets/selection/overlay.dart:143:24: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance!.addPostFrameCallback(_markNeedsBuild);
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math_fork-0.5.0/lib/src/widgets/selection/overlay.dart:193:26: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    if (SchedulerBinding.instance!.schedulerPhase ==
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math_fork-0.5.0/lib/src/widgets/selection/overlay.dart:195:24: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance!.addPostFrameCallback(_markNeedsBuild);
    ^
    Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\device_info-2.0.3\android\src\main\java\io\flutter\plugins\deviceinfo\DeviceInfoPlugin.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (23, 1): Class 'QRView' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener
    e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (217, 26): Null can not be a value of a non-null type String
    e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (248, 26): Null can not be a value of a non-null type String
    e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (301, 5): 'onRequestPermissionsResult' overrides nothing
    e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRViewFactory.kt: (10, 1): Class 'QRViewFactory' is not abstract and does not implement abstract base class member public abstract fun create(p0: Context?, p1: Int, p2: Any?): PlatformView defined in io.flutter.plugin.platform.PlatformViewFactory
    e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRViewFactory.kt: (13, 5): 'create' overrides nothing

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':qr_code_scanner:compileDebugKotlin'.

Compilation error. See log for more details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 45s
Exception: Gradle task assembleDebug failed with exit code 1

Solution for Android location (GPS) tracking service

Hi,

I'm wondering if you're aware of any open source library/service that would track Android's GPS location 24/7 and send it to ThingsBoard?

Also if I were to implement such such service would it fit into this app? But I'm really hoping something like that already exists because I think it's very useful and common use case. Currently we can get such solution from Google https://www.google.com/maps/timeline but I would rather own data myself in my own infrastructure.

How to set Device Name from attribute

Hello, thank you very much for this wonderful App.
I need users to be able to change the deviceName of each of their devices.
Since I did not find a way to set the value of the "Name" or "Label" property of the devices from the dashboard. I save it in a shared attribute (so that the device can read it and show it on its screen) that the user can change it from the dashboard.

I plan to retrieve the value with the following call

var entityId = EntityId.fromTypeAndUuid (EntityType.DEVICE, device.entityId.id!);
var deviceServerAtts = tbClient.getAttributeService (). getAttributesByScope (entityId, "SHARED_SCOPE", ["config.deviceName"]);

The problem is that I don't know where to replace "Name" of the device with the value of the shared attribute "config.deviceName" in the whole App.

Can someone guide me?
Thank you

Error when first running on iOS

I'm trying to run the ThingsBoard Flutter mobile app (on first run without any changes in the codebase), but I'm running into an issue:

Xcode build done.                                            6.6s

Failed to build iOS app

Could not build the precompiled application for the device.

Error (Xcode): lib/core/context/tb_context.dart:53:14: Error: Too many

positional arguments: 1 allowed, but 3 found.




Error launching application on DEVICE_NAME.

Not able to view dashboard using endpoint : https://demo.thingsboard.io

the app keeps loading like this as shown below when I tried to open the dashboard

image

the error on console shows , this is only some part , I cannot show all due to the error keeps adding up indefinitely

image

what happened ? I believe before this I'm using demo endpoint it works fine but now its not , is is related to the current thingsboard version which has been updated recently ?

Null check operator used on a null value

Hello,

The first time I run the application in the simulator, it gets stuck in the initial screen, in order to continue I have to stop the simulation and restart the application, in this case, I access the login screen and I can enter the credentials, but it gets stuck again, it is in the third run when I can actually enter the dashboard.

error

Unsupported ThingsBoard platform version: unknown

versions:
thingsboard: 3.3.4
flutter_thingsboard_app: latest
ext.kotlin_version: '1.7.10'
gradle: 6.7.1

I received the following error when starting the project:

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
√ Built build\app\outputs\flutter-apk\app-debug.apk.
D/FlutterGeolocator( 6521): Attaching Geolocator to activity
W/FlutterActivityAndFragmentDelegate( 6521): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
D/FlutterGeolocator( 6521): Creating service.
D/FlutterGeolocator( 6521): Binding to location service.
D/FlutterGeolocator( 6521): Geolocator foreground service connected
D/FlutterGeolocator( 6521): Initializing Geolocator services
Debug service listening on ws://127.0.0.1:64067/MsBq8uDfTpw=/ws
Syncing files to device Android SDK built for x86...
I/flutter ( 6521): ERROR ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter ( 6521): ERROR │ ThingsboardError: message: [Unsupported ThingsBoard platform version: unknown], errorCode: 2, status: null
I/flutter ( 6521): ERROR │ #0 toThingsboardError (package:thingsboard_client/src/error/_thingsboard_error_handler_io.dart:89:18)
I/flutter ( 6521): ERROR │ #1 ThingsboardClient.init (package:thingsboard_client/src/thingsboard_client_base.dart:216:13)
I/flutter ( 6521): ERROR │
I/flutter ( 6521): ERROR │ #2 TbContext.init (package:thingsboard_app/core/context/tb_context.dart:172:7)
I/flutter ( 6521): ERROR │
I/flutter ( 6521): ERROR │ #3 HasTbContext.initTbContext (package:thingsboard_app/core/context/tb_context.dart:565:5)
I/flutter ( 6521): ERROR │
I/flutter ( 6521): ERROR │
I/flutter ( 6521): ERROR ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter ( 6521): ERROR │ #0 ThingsboardClient.init (package:thingsboard_client/src/thingsboard_client_base.dart:216:7)
I/flutter ( 6521): ERROR │ #1
I/flutter ( 6521): ERROR │ #2 TbContext.init (package:thingsboard_app/core/context/tb_context.dart:172:7)
I/flutter ( 6521): ERROR │ #3
I/flutter ( 6521): ERROR │ #4 HasTbContext.initTbContext (package:thingsboard_app/core/context/tb_context.dart:565:5)
I/flutter ( 6521): ERROR │ #5
I/flutter ( 6521): ERROR ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter ( 6521): ERROR │ ⛔ Failed to init tbContext: ThingsboardError: message: [Unsupported ThingsBoard platform version: unknown], errorCode: 2, status: null
I/flutter ( 6521): ERROR │ ⛔ #0 toThingsboardError (package:thingsboard_client/src/error/_thingsboard_error_handler_io.dart:89:18)
I/flutter ( 6521): ERROR │ ⛔ #1 ThingsboardClient.init (package:thingsboard_client/src/thingsboard_client_base.dart:216:13)
I/flutter ( 6521): ERROR │ ⛔
I/flutter ( 6521): ERROR │ ⛔ #2 TbContext.init (package:thingsboard_app/core/context/tb_context.dart:172:7)
I/flutter ( 6521): ERROR │ ⛔
I/flutter ( 6521): ERROR │ ⛔ #3 HasTbContext.initTbContext (package:thingsboard_app/core/context/tb_context.dart:565:5)
I/flutter ( 6521): ERROR │ ⛔
I/flutter ( 6521): ERROR │ ⛔
I/flutter ( 6521): ERROR └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
image

How can I solve this problem?thanks!

The versions after 2453bd9 are not working with ThingsBoard 3.6.3

ThingsboardError (ThingsboardError: message: [Path '/api/notifications/unread/count': Not Found], errorCode: 32, status: 404
#0      toThingsboardError (package:thingsboard_client/src/error/_thingsboard_error_handler_io.dart:89:18)
#1      HttpInterceptor.onError (package:thingsboard_client/src/interceptor/http_interceptor.dart:104:19)
#2      QueuedInterceptor._handleQueue (package:dio/src/interceptor.dart:423:17)
#3      QueuedInterceptor._handleError (package:dio/src/interceptor.dart:399:5)
#4      DioMixin.fetch.errorInterceptorWrapper.<anonymous closure>.handleError (package:dio/src/dio_mixin.dart:429:13)
#5      new Future.<anonymous closure> (dart:async/future.dart:256:37)

thingsboard_client 1.1.1 is not working with ThingsBoard 3.6.3, we don't have '/api/notifications/unread/count' there.
image

The dashboard does not load in web app!

Hello every body,

i tried to build web app by this mobile application,
dashboards load in android but don't load in web app!
in dashboard just write: Not implemented!

do you know any solutions? (I tried with version 3.61 and 3.6.2 CE. and mobile app version 1.0.6 and 1.0.8 and result was the same like below image)
tb-webapp

Not implemented! message when I open a dashboard.

Hi,

I'm testing thingsboard mobile app with demo.thingsboard.io, I get "Not implemented!" message when I open any dashboard.
So, I cannot see any widgets.

Have you faced a similar problem, how can I solve this issue?

Thanks.

image

Access to originator of notification

Hi every one
I try to get the originator of the notification. When I print ('[WebSocket Data]: Received notification: ${notification.notifications}');
I can see the originator. But when I try to access it by ‘notification.notifications?.first’. , I can't get any originator suggestions but other parts exist.
This problem is shown at below :
Untitled

Please guide me on how I can access to originator of notification.

I am not able to setup in my mac M1 . I have flutter 3 version. Plzz help me. I am getting a lot of errors

                      ^

: Error: Required named parameter 'minScrollExtent' must be provided.
scroll_metrics.dart:202
return FixedScrollMetrics(
^
: Context: Found this candidate, but the arguments don't match.
scroll_metrics.dart:142
FixedScrollMetrics({
^^^^^^^^^^^^^^^^^^
: Error: The method 'toMap' isn't defined for the class 'AxisDirection'.
scroll_metrics.dart:218

  • 'AxisDirection' is from 'package:flutter/src/painting/basic_types.dart' ('../../../sdks/flutter/packages/flutter/lib/src/painting/basic_types.dart').
    basic_types.dart:1
    Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
    'axisDirection': axisDirection.toMap(),
    ^^^^^
    : Error: Enums can't be instantiated.
    scroll_metrics.dart:229
    axisDirection: AxisDirection.fromMap(map['axisDirection'] as Map<String,dynamic>),

                                 ^^^^^^^
    

: Error: Required named parameter 'minScrollExtent' must be provided.
scroll_metrics.dart:224
return FixedScrollMetrics(
^
: Context: Found this candidate, but the arguments don't match.
scroll_metrics.dart:142
FixedScrollMetrics({

Error on flutter run...

Hi,

I got this error when i launch a flutter run command, any help to solve it ??
Thanks !

Running "flutter pub get" in flutter_thingsboard_app... 3,9s
Launching lib\main.dart on M2101K9AG in debug mode...
lib/modules/dashboard/dashboard.dart:384:87: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').
    var data = MediaQueryData.fromWindow(WidgetsBinding.instance!.window);
    ^
    lib/core/auth/login/login_page.dart:188:71: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').
    var data = MediaQueryData.fromWindow(WidgetsBinding.instance!.window);
    ^
    lib/core/auth/web/tb_web_auth.dart:27:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance?.removeObserver(_resumedObserver); // safety measure so we never add this observer twice
    ^
    lib/core/auth/web/tb_web_auth.dart:28:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance?.addObserver(_resumedObserver);
    ^
    lib/core/auth/web/tb_web_auth.dart:38:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance?.removeObserver(_resumedObserver);
    ^
    ../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/qr_code_scanner-0.6.1/lib/src/qr_code_scanner.dart:68:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addObserver(_observer);
    ^
    ../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/qr_code_scanner-0.6.1/lib/src/qr_code_scanner.dart:86:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.removeObserver(_observer);
    ^
    ../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/infinite_scroll_pagination-3.1.0/lib/src/ui/paged_sliver_builder.dart:257:24: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance?.addPostFrameCallback((_) {
    ^
    Note: C:\Users\anglm\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\device_info-2.0.3\android\src\main\java\io\flutter\plugins\deviceinfo\DeviceInfoPlugin.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    e: C:\Users\anglm\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (23, 1): Class 'QRView' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener
    e: C:\Users\anglm\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (217, 26): Null can not be a value of a non-null type String
    e: C:\Users\anglm\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (248, 26): Null can not be a value of a non-null type String
    e: C:\Users\anglm\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (301, 5): 'onRequestPermissionsResult' overrides nothing
    e: C:\Users\anglm\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRViewFactory.kt: (10, 1): Class 'QRViewFactory' is not abstract and does not implement abstract base class member public abstract fun create(p0: Context?, p1: Int, p2: Any?): PlatformView defined in io.flutter.plugin.platform.PlatformViewFactory
    e: C:\Users\anglm\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qr_code_scanner-0.6.1\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRViewFactory.kt: (13, 5): 'create' overrides nothing

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':qr_code_scanner:compileDebugKotlin'.

Compilation error. See log for more details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 13s
Running Gradle task 'assembleDebug'... 75,0s
Exception: Gradle task assembleDebug failed with exit code 1`

Flutter thingsboard mobile app no answer after login

Hi!
After creating mobile app with Flutter and thingsboard, On the android 11 emulator, I obtained the login/password page.
I put my credentials for thingsboard.cloud and get... nothing.
The debug put no error messages.
I case I put wrong credentials, I got an error message.

Why can I access to my dashboards defined on thingsboard.cloud ?

Thanks!

Invisible email / password textbox and words in login page in Darkmode?

Hi everyone,
Is there anyone hitting a strange problem as below?
I tried it in Samsung phone. Android 10.
The email and password textboxes are invisible.

When I touch the screen, the boxes appear.
I can key in but the words are not displayed too.
However, I can still login.

Updated: This issue happened when I set my phone into Dark mode. Normal mode shows OK. Should fix anything for Darkmode?

image

image

image

Can't run in Flutter 3.0.0

e: /Users/jiekechoo/devel/flutterSDK3/.pub-cache/hosted/pub.flutter-io.cn/qr_code_scanner-0.5.2/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt: (23, 1): Class 'QRView' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener
e: /Users/jiekechoo/devel/flutterSDK3/.pub-cache/hosted/pub.flutter-io.cn/qr_code_scanner-0.5.2/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt: (214, 26): Null can not be a value of a non-null type String
e: /Users/jiekechoo/devel/flutterSDK3/.pub-cache/hosted/pub.flutter-io.cn/qr_code_scanner-0.5.2/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt: (245, 26): Null can not be a value of a non-null type String
e: /Users/jiekechoo/devel/flutterSDK3/.pub-cache/hosted/pub.flutter-io.cn/qr_code_scanner-0.5.2/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt: (273, 5): 'onRequestPermissionsResult' overrides nothing
e: /Users/jiekechoo/devel/flutterSDK3/.pub-cache/hosted/pub.flutter-io.cn/qr_code_scanner-0.5.2/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRViewFactory.kt: (10, 1): Class 'QRViewFactory' is not abstract and does not implement abstract base class member public abstract fun create(p0: Context?, p1: Int, p2: Any?): PlatformView defined in io.flutter.plugin.platform.PlatformViewFactory
e: /Users/jiekechoo/devel/flutterSDK3/.pub-cache/hosted/pub.flutter-io.cn/qr_code_scanner-0.5.2/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRViewFactory.kt: (13, 5): 'create' overrides nothing

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':qr_code_scanner:compileDebugKotlin'.

Compilation error. See log for more details

reference : [BUG] Can't run in flutter 3 #532

Cannot build APK

Hello everyone,
I am new to Android Studio but I managed it to make app work in emulator. However, I am unable to make APK. I got this message:

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildRelease'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.

  • What went wrong:
    java.lang.StackOverflowError (no error message)

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

BUILD FAILED in 1m 5s
Running Gradle task 'assembleRelease'... 67,4s
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1

Unsupported version

I can not open the APP, stuck in the loading page, the error is not supported version.

flutter_thingsboard_app version last
thingsboard last

app build error for flutter

I am getting below error.
Flutter SDK version: 3.3.4
build OS: Windows 11

`1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_inappwebview:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.

  • What went wrong:
    java.lang.StackOverflowError (no error message)

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

BUILD FAILED in 38s
Running Gradle task 'assembleDebug'... 39.6s
Exception: Gradle task assembleDebug failed with exit code 1`

Unable to Login and view dashboard

Hey guys,

I've followed all the steps from the setup tutorial (https://thingsboard.io/docs/pe/mobile/getting-started/) accurately. If I set the endpoint to the ThingsBoard cloud (https://thingsboard.cloud) then the app works perfectly, but if I set the endpoint to my ThingsBoard PE server instance, then I can't login to the app. On the server, it does indicate a successful login however nothing changes on the app. Has anyone experienced this problem or could they advise on a solution? Thanks

Why there is no generic cloud app?

Dear maker
I found the generic app to access to demo dashboard.
But why is there not an app for cloud dashboard?
Have to put flutter dart Android studio avdtools...
I used one day and at the end the login does... Nothing.

Could anyone exclaim me why I can't find a generic app for cloud thingsboard version?
Thanks!

Can't log in to thingsboard.cloud or demo

I have been trying to connect to the thingsboard.cloud (the same thing happens if I try to connect to the demo) but when I try to log in using my username and password it shows the logo like if it was loading but then it stays in this same login screen.

image

The debug console shows the following output.
image

When I retry to log it just appears this in the output console.
image

We are using a self hosted ThingsBoard and the mobile app works fine with that, but we also wanted to use ThingsBoard Cloud so I would like to figure out what could be happening. I have checked that this issue appears both in Chrome and in my phone.
What could be causing this issue? Or which troubleshooting steps could I follow?
Thanks!

Different endpoints have different responses

Going to:
https://demo.thingsboard.io
allows me to login and the app works fine

Going to:
https://thingsboard.cloud
allows me to type in my credentials but when I press enter it doesnt actually log me in, it just loads and goes back to the login page with no error message

Going to:
https://cloud.trumeter.com (my thingsboard site)
doesnt even load the login page just stays with the loading icon forever...

I assume this is something to do with thingsboard versions?

iOS: If home dashboard is selected, home page loads forever

Using the latest version, 1.0.8, if the account you sign into on a iOS device has a selected home dashboard under account the the page loads forever on first login like this:
IMG_0015

I have tested this on my own server as well as my own app, then I have tried a clean version of the app from this repo following this guide: https://thingsboard.io/docs/mobile/getting-started/
I have tried my own server as well as demo.thingsboard.io but non of them work if I have a selected home dashboard.

Error while connecting to thingsboard via Flutter App

Hi everybody,

I'm getting an error when I launch the flutter mobile app here is the details. The error is produced when I enter my credentials and try to authentificate :

exception = {DioError} DioError [DioErrorType.response]: Http status error [404]\n#0 DioMixin.assureDioError (package:dio/src/dio_mixin.dart:819:20
requestOptions = {RequestOptions}
response = {Response} {"timestamp":"2021-07-30T08:54:10.798+00:00","status":404,"error":"Not Found","message":"","path":"/api/dashboard/home/info"}
data = {_InternalLinkedHashMap} size = 5
headers = {Headers} cache-control: no-cache, no-store, max-age=0, must-revalidate\ndate: Fri, 30 Jul 2021 08:54:10 GMT\ntransfer-encoding: chunked\nvar
requestOptions = {RequestOptions}
statusCode = 404
statusMessage = ""
extra = {_InternalLinkedHashMap} size = 0
redirects = {_GrowableList} size = 0
isRedirect = false
type = {DioErrorType} DioErrorType.response
index = 3
_name = "DioErrorType.response"
error = "Http status error [404]"
_stackTrace = {_StackTrace}
reqOpt = {RequestOptions}
method = "GET"
_headers = {_CompactLinkedCustomHashMap} {Content-Type: application/json, X-Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJlbG1laGRpLmVsamFpci4xQGdtYWlsLmNvbSIsIn
sendTimeout = 0
receiveTimeout = 0
_defaultContentType = "application/json"
responseType = {ResponseType} ResponseType.json
validateStatus = {_Closure} Closure: (int?) => bool
receiveDataWhenStatusError = true
extra = {_InternalLinkedHashMap} size = 4
followRedirects = true
maxRedirects = 5
requestEncoder = null
responseDecoder = null
listFormat = {ListFormat} ListFormat.multi
baseUrl = "http://34.69.18.85:8080"
queryParameters = {_InternalLinkedHashMap} size = 0
connectTimeout = 0
data = null
path = "/api/dashboard/home/info"
cancelToken = null
onReceiveProgress = null
onSendProgress = null
this = {DioForNative}
cancelToken = null
responseBody = {ResponseBody}
e = {DioError} DioError [DioErrorType.response]: Http status error [404]\n#0 DioMixin.assureDioError (package:dio/src/dio_mixin.dart:819:20

Issue in running the mobile app for the first time

We are planning to use ThingsBoard’s open-source mobile application, to get the notification for the alarms and to view dashboards on the mobile devices.

I have installed all the packages and software required for the TB flutter app to run on windows system, but the errors attached below got raised whenever I tried to run the app from VS code.
Please investigate this and help us in resolving this issue.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.