Skip to content

mwaylabs/flutter-managed-configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Daniel Kononov
Nov 7, 2024
86201cd · Nov 7, 2024

History

41 Commits
Oct 22, 2024
Apr 12, 2024
Oct 29, 2024
Oct 21, 2024
Apr 15, 2024
Apr 16, 2024
Apr 12, 2024
Apr 12, 2024
Jun 10, 2021
Nov 7, 2024
Jun 10, 2021
Oct 21, 2024
Apr 15, 2024
Dec 30, 2021
Jun 10, 2021
Apr 12, 2024
Nov 7, 2024

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

Android:

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

How to Test

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

iOS/macOS

https://developer.apple.com/documentation/foundation/nsuserdefaults#2926901

How to Test

Apple does not provide a dev environment to test managed app configuration so you will need to use one of the available MDM provider. This package was created to work with Relution. You can create a free Account and enroll up to 5 devices to test your implementation.

For more information check out the documentation of the used MDM provider how to add managed app configuration to your app.

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");