Skip to content

TomBeckett/flutter-managed-configuration

 
 

Repository files navigation

managed_configurations

Plugin to support managed app configuration provided by a Mobile device management (MDM)

Allows to read out Managed App Configuration. Provides a method and a stream which calls on managed app configuration changes.

Additional Information

https://developer.android.com/work/managed-configurations

Test on Android:

It could be that you need to factory reset your android device before installing TestDPC for testing.

How to use

To get managed app configuration call:

final managedConfig = ManagedConfigurations();
final managedAppConfig = await managedConfig.getManagedConfigurations;

To listen for managed app config changes subscribe to the stream:

...
managedConfig.mangedConfigurationsStream.listen((managedAppConfig){
    print(managedAppConfig);
});

(Android) Report state with KeyedAppStatesReporter

For more info please checkout Android doc: https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/KeyedAppStatesReporter

...
managedConfig.reportKeyedAppStates("key", Severity.SEVERITY_INFO, "message","data");

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 28.4%
  • Java 22.3%
  • Swift 18.6%
  • Kotlin 18.0%
  • Ruby 12.6%
  • Objective-C 0.1%