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
- Host: GitHub
- URL: https://github.com/robinpowered/react-native-mdm
- Owner: robinpowered
- License: mit
- Created: 2017-09-28T15:54:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-26T18:34:16.000Z (over 2 years ago)
- Last Synced: 2024-10-29T23:38:40.790Z (over 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 390 KB
- Stars: 49
- Watchers: 24
- Forks: 20
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```