Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

+1 vote
There is a tab "Application settings" in the configuration. I would like to integrate my app with Headwind MDM to be able to do bulk setup from the server.
by (37.5k points)

1 Answer

0 votes

The application settings are retrieved in the app after it is connected with Headwind MDM service. Use the sample plugin to see how to connect the app to Headwind MDM.

Here's the integration flow:

1. Call 

MDMService.getInstance().connect(context, resultHandler) 

in onResume or wherever you need.

2. Implement the MDMService.ResultHandler interface. There are two callbacks, onMDMConnected and onMDMDisconnected. After onMDMConnected is called, the connection is established and you can retrieve the app settings.

3. To retrieve the app settings, use the following method:

MDMService.Preferences.get(String preferenceName, String defaultValue);

by (37.5k points)
...