GithubHelp home page GithubHelp logo

mewssystems / mews-flutter Goto Github PK

View Code? Open in Web Editor NEW
55.0 49.0 18.0 3.65 MB

Flutter and Dart open-source packages maintained by Mews.

Dart 98.10% Kotlin 0.68% Swift 0.41% Objective-C 0.09% HTML 0.13% Ruby 0.59%
dart dart2 flutter flutter-plugin flutter-package dart-library dart-package

mews-flutter's People

Contributors

alboiuvlad29 avatar atlassian-compass[bot] avatar chaemil avatar dependabot[bot] avatar github-actions[bot] avatar gladkowski avatar m2themax avatar ooguz avatar ookami-kb avatar riccardoerra avatar sevastyan avatar witwash 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

Watchers

 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

mews-flutter's Issues

Update Gradle Plugin

Can be the Gradle plugin in kiosk_mode be updated? When trying to run the app I get this error:

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
root project 'android' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

How to set DevicePolicyManager#isLockTaskPermitted to true?

Can you tell me how to enable this and directly launch locktask without user permission?

I've tried step by step guide to enable device owner using adb and set Receiver in AndroidManifest.xml like this :

    <receiver
        android:name="com.example.kiosk.AppAdminReceiver"
        android:label="kioskadmin"
        android:permission="android.permission.BIND_DEVICE_ADMIN">
        <meta-data
            android:name="android.app.device_admin"
            android:resource="@xml/device_admin_receiver" />
        <intent-filter>
            <action android:name="android.intent.action.DEVICE_ADMIN_ENABLED"/>
            <action android:name="android.intent.action.PROFILE_PROVISIONING_COMPLETE"/>
            <action android:name="android.intent.action.BOOT_COMPLETED"/>
        </intent-filter>
    </receiver>

Then i run this adb command :
adb shell dpm set-device-owner com.example.kiosk/.AppAdminReceiver

The adb resulted in success as shown below :
Success: Device owner set to package ComponentInfo{com.example.kiosk/com.example.kiosk.AppAdminReceiver} Active admin set to component {com.example.kiosk/com.example.kiosk.AppAdminReceiver}

But when i tried to run my app again and run startKioskMode(), it shows screen pin hint and user can exit the screen pinning by pressing back and overview button.

Any help would greatly appreciated..

Thank you.

kiosk_mode: please update documentation

In the kiosk_mode package, you wrote:

Android only
All the methods in this section will throw FlutterMethodNotImplemented in iOS.

Start kiosk mode

Stop kiosk mode

But when I look at the code, the functions are also available for iOS. So please update the documentation :-)

Could not determine the dependencies of task ':kiosk_mode:compileDebugAidl'.

//android/app/build.gradle

android {
    compileSdkVersion 34
    ndkVersion flutter.ndkVersion

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    kotlinOptions {
        jvmTarget = '1.8'
    }

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    defaultConfig {
        minSdkVersion 24
        targetSdkVersion 31
        versionCode 1
        versionName '1.0'
    }

    buildTypes {
        release {
            // TODO: Add your own signing config for the release build.
            // Signing with the debug keys for now, so `flutter run --release` works.
            signingConfig signingConfigs.debug
        }
    }
}

//pubspec.yaml
kiosk_mode: ^0.5.0

The console is

Could not determine the dependencies of task ':kiosk_mode:compileDebugAidl'.
Failed to find Platform SDK with path: platforms;android-30

while enabling i am getting below error

E/flutter ( 4309): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Stack Overflow
E/flutter ( 4309): #0 Future._hasError (dart:async/future_impl.dart:303:3)
E/flutter ( 4309): #1 Future._error (dart:async/future_impl.dart:401:12)
E/flutter ( 4309): #2 Future._propagateToListeners.handleError (dart:async/future_impl.dart:856:34)
E/flutter ( 4309): #3 Future._propagateToListeners (dart:async/future_impl.dart:873:13)
E/flutter ( 4309): #4 Future._completeError (dart:async/future_impl.dart:649:5)
E/flutter ( 4309): #5 _RootZone.runUnary (dart:async/zone.dart:1661:54)
E/flutter ( 4309): #6 _FutureListener.handleValue (dart:async/future_impl.dart:156:18)
E/flutter ( 4309): #7 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:840:45)
E/flutter ( 4309): #8 Future._propagateToListeners (dart:async/future_impl.dart:869:13)
E/flutter ( 4309): #9 Future._completeWithValue (dart:async/future_impl.dart:641:5)
E/flutter ( 4309): #10 _RootZone.runUnary (dart:async/zone.dart:1661:54)
E/flutter ( 4309): #11 _FutureListener.handleValue (dart:async/future_impl.dart:156:18)
E/flutter ( 4309): #12 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:840:45)
E/flutter ( 4309): #13 Future._propagateToListeners (dart:async/future_impl.dart:869:13)
E/flutter ( 4309): #14 Future._completeWithValue (dart:async/future_impl.dart:641:5)
E/flutter ( 4309): #15 _RootZone.runUnary (dart:async/zone.dart:1661:54)
E/flutter ( 4309): #16 _FutureListener.handleValue (dart:async/future_impl.dart:156:18)
E/flutter ( 4309): #17 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:840:45)
E/flutter ( 4309): #18 Future._propagateToListeners (dart:async/future_impl.dart:869:13)
E/flutter ( 4309): #19 Future._completeWithValue (dart:async/future_impl.dart:641:5)
E/flutter ( 4309): #20 _RootZone.runUnary (dart:async/zone.dart:1661:54)
E/flutter ( 4309): #21 _FutureListener.handleValue (dart:async/future_impl.dart:156:18)
E/flutter ( 4309): #22 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:840:45)
E/flutter ( 4309): #23 Future._propagateToListeners (dart:async/future_impl.dart:869:13)
E/flutter ( 4309): #24 Future._completeWithValue (dart:async/future_impl.dart:641:5)
E/flutter ( 4309): #25 _RootZone.runUnary (dart:async/zone.dart:1661:54)
E/flutter ( 4309): #26 _FutureListener.handleValue (dart:async/future_impl.dart:156:18)
E/flutter ( 4309): #27 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:840:45)
E/flutter ( 4309): #28 Future._propagateToListeners (dart:async/future_impl.dart:869:13)
E/flutter ( 4309): #29 Future._completeWithValue (dart:async/future_impl.dart:641:5)
E/flutter ( 4309): #30 _RootZone.runUnary (dart:async/zone.dart:1661:54)
E/flutter ( 4309): #31 _FutureListener.handleValue (dart:async/future_impl.dart:156:18)
E/flutter ( 4309): ...
E/flutter ( 4309): ...
E/flutter ( 4309): #9332 _RootZone.runUnary (dart:async/zone.dart:1661:54)
E/flutter ( 4309): #9333 _FutureListener.handleValue (dart:async/future_impl.dart:156:18)
E/flutter ( 4309): #9334 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:840:45)
E/flutter ( 4309): #9335 Future._propagateToListeners (dart:async/future_impl.dart:869:13)
E/flutter ( 4309): #9336 Future._completeWithValue (dart:async/future_impl.dart:641:5)
E/flutter ( 4309): #9337 _RootZone.runUnary (dart:async/zone.dart:1661:54)
E/flutter ( 4309): #9338 _FutureListener.handleValue (dart:async/future_impl.dart:156:18)
E/flutter ( 4309): #9339 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:840:45)
E/flutter ( 4309): #9340 Future._propagateToListeners (dart:async/future_impl.dart:869:13)
E/flutter ( 4309): #9341 Future._completeWithValue (dart:async/future_impl.dart:641:5)
E/flutter ( 4309): #9342 _RootZone.runUnary (dart:async/zone.dart:1661:54)
E/flutter ( 4309): #9343 _FutureListener.handleValue (dart:async/future_impl.dart:156:18)
E/flutter ( 4309): #9344 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:840:45)
E/flutter ( 4309): #9345 Future._propagateToListeners (dart:async/future_impl.dart:869:13)
E/flutter ( 4309): #9346 Future._completeWithValue (dart:async/future_impl.dart:641:5)
E/flutter ( 4309): #9347 _RootZone.runUnary (dart:async/zone.dart:1661:54)
E/flutter ( 4309): #9348 _FutureListener.handleValue (dart:async/future_impl.dart:156:18)
E/flutter ( 4309): #9349 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:840:45)
E/flutter ( 4309): #9350 Future._propagateToListeners (dart:async/future_impl.dart:869:13)
E/flutter ( 4309): #9351 Future._completeWithValue (dart:async/future_impl.dart:641:5)
E/flutter ( 4309): #9352 _RootZone.runUnary (dart:async/zone.dart:1661:54)
E/flutter ( 4309): #9353 _FutureListener.handleValue (dart:async/future_impl.dart:156:18)
E/flutter ( 4309): #9354 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:840:45)
E/flutter ( 4309): #9355 Future._propagateToListeners (dart:async/future_impl.dart:869:13)
E/flutter ( 4309): #9356 Future._completeWithValue (dart:async/future_impl.dart:641:5)
E/flutter ( 4309): #9357 _RootZone.runBinary (dart:async/zone.dart:1666:54)
E/flutter ( 4309): #9358 _FutureListener.handleError (dart:async/future_impl.dart:171:22)
E/flutter ( 4309): #9359 Future._propagateToListeners.handleError (dart:async/future_impl.dart:852:47)
E/flutter ( 4309): #9360 Future._propagateToListeners (dart:async/future_impl.dart:873:13)
E/flutter ( 4309): #9361 Future._completeError (dart:async/future_impl.dart:649:5)
E/flutter ( 4309): #9362 Future._asyncCompleteError. (dart:async/future_impl.dart:739:7)
E/flutter ( 4309): #9363 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
E/flutter ( 4309): #9364 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
E/flutter ( 4309):

please help to resolve it

Open other app after startKioskMode

Hello, Android says that a 'pinned' app can open another app.

However, after calling startKioskMode() and the app is fixed, when I try to open another app, a notification appears saying that to do this I need to hold down both buttons...

So how do I enter another application without having to remove kiosk mode? To open the application I am using DeviceApps

bool isInstalled = await DeviceApps.isAppInstalled( 'com.app.my');

if (isInstalled) {
       DeviceApps.openApp('br.app.my');
} else {
       // ignore: use_build_context_synchronously
       ScaffoldMessenger.of(context)
       .showSnackBar(const SnackBar(
       content: Text('App not found!'),
       ));

Thx!

How to force app in kiosk mode

I have an app written with flutter and using the kiosk package. Then I called startKioskMode() when app first launch. But it shows with a selection: No, thanks and Got it.
If I choose No thanks then the koisk mode is exit.

Below shows in https://pub.dev/packages/kiosk_mode

If DevicePolicyManager#isLockTaskPermitted(String) returns true for this component, the current task will be launched directly into LockTask mode.

But I'm not familiar with android so I don't know how to add this in flutter.

How can I force the app in koisk mode until I call stopKoiskMode

Request for Windows Support in Kiosk Mode Package

Hello,

I am currently developing a kiosk application using Flutter, and I found the 'kiosk_mode' package to be very useful in handling various functionalities on Android and iOS. However, I noticed that this package currently does not support the Windows platform.

In my project, I am also targeting Windows devices, and it's crucial for me to prevent the appearance of the Windows taskbar or triggering of Windows functionalities during certain operations (like scrolling).

The lack of Windows support in the 'kiosk_mode' package creates a significant gap in achieving the desired functionality in my application. Therefore, I am kindly requesting the addition of Windows support for this package.

Has this been considered before, or is there any plan to add Windows support in the near future? If not, I would greatly appreciate it if this feature could be considered for a future update.

Thank you for your time and consideration.

Permanently hide Android Bottom Navigation/Statusbar?

Hello, my app will live on an Android tablet for the public, so logically I need to restrict what will be accessed. I need my app to always stay open, I can't exit it and when the device starts, it starts automatically (optional).

I'm using kiosk_mode, but the app is just pinned, if the person clicks on the screen the Android buttons are shown, in which they can hold and unpin the app, as well as pull the statusbar down and turn off the Wi-Fi, access the settings, for example.

Is there any way to do this blocking? In the application I hid a hidden button in which after entering a password, there are some settings, such as battery percentage, wifi settings, button to exit kiosk mode, which when clicked calls the stopKioskMode() function, to be able to exit the application in case of update, configuration...

But the problem is that the normal user can exit the application and use the tablet normally

Any idea? Thanks!

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.