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

IMPORTANT: Please notify the team about your question by filling in the form on the contact page. Otherwise, we may miss your question!

0 votes
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 (6.1k 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 (6.1k points)