An open API service indexing awesome lists of open source software.

https://github.com/robinpowered/react-native-mdm

Mobile Device Management tools for React Native
https://github.com/robinpowered/react-native-mdm

Last synced: 10 months ago
JSON representation

Mobile Device Management tools for React Native

Awesome Lists containing this project

README

          

# Install react-native-mdm
```
npm install react-native-mdm
```

# Setup

```javascript
import MobileDeviceManager from 'react-native-mdm';
```

```javascript
MobileDeviceManager
.isSupported()
.then(supported => console.log(supported))
.catch(error => console.log(error));
```

```javascript
MobileDeviceManager
.getConfiguration()
.then(result => console.log(result))
.catch(error => console.log(error));
```

```javascript
componentDidMount() {
this.MDMListener = MobileDeviceManager.addListener(this.MDMDidUpdate);
}

MDMDidUpdate(data) {
console.log('AppConfig data was changed');
console.log(data);
}

componentWillUnmount() {
this.MDMListener.remove();
}
```

## Additional steps for Android

Schema and extra settings needed for `AndroidManifest.xml` to obtain app configurations from MDM provider. [Android documentation regarding this](https://developer.android.com/work/managed-configurations.html)

```xml

```

```xml

```