{"id":21540019,"url":"https://github.com/robinpowered/react-native-mdm","last_synced_at":"2025-08-20T18:32:44.216Z","repository":{"id":25690257,"uuid":"105168477","full_name":"robinpowered/react-native-mdm","owner":"robinpowered","description":"Mobile Device Management tools for React Native","archived":false,"fork":false,"pushed_at":"2023-10-26T18:34:16.000Z","size":399,"stargazers_count":49,"open_issues_count":21,"forks_count":20,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-10-29T23:38:40.790Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robinpowered.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-28T15:54:16.000Z","updated_at":"2024-09-06T10:29:03.000Z","dependencies_parsed_at":"2023-10-26T19:33:13.787Z","dependency_job_id":null,"html_url":"https://github.com/robinpowered/react-native-mdm","commit_stats":{"total_commits":106,"total_committers":5,"mean_commits":21.2,"dds":"0.23584905660377353","last_synced_commit":"8be7fc9171879faffbdf505a7505e75521cf57d8"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinpowered%2Freact-native-mdm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinpowered%2Freact-native-mdm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinpowered%2Freact-native-mdm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinpowered%2Freact-native-mdm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robinpowered","download_url":"https://codeload.github.com/robinpowered/react-native-mdm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230038865,"owners_count":18163311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T04:17:01.452Z","updated_at":"2024-12-19T14:07:12.364Z","avatar_url":"https://github.com/robinpowered.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Install react-native-mdm\n```\nnpm install react-native-mdm\n```\n\n# Setup\n\n```javascript\nimport MobileDeviceManager from 'react-native-mdm';\n```\n\n```javascript\nMobileDeviceManager\n  .isSupported()\n  .then(supported =\u003e console.log(supported))\n  .catch(error =\u003e console.log(error));\n```\n\n```javascript\nMobileDeviceManager\n  .getConfiguration()\n  .then(result =\u003e console.log(result))\n  .catch(error =\u003e console.log(error));\n```\n\n```javascript\ncomponentDidMount() {\n  this.MDMListener = MobileDeviceManager.addListener(this.MDMDidUpdate);\n}\n\nMDMDidUpdate(data) {\n  console.log('AppConfig data was changed');\n  console.log(data);\n}\n\ncomponentWillUnmount() {\n    this.MDMListener.remove();\n}\n```\n\n## Additional steps for Android\n\nSchema 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)\n\n```xml\n\u003cmeta-data android:name=\"android.content.APP_RESTRICTIONS\"\n  android:resource=\"@xml/app_restrictions\" /\u003e\n```\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003crestrictions xmlns:android=\"http://schemas.android.com/apk/res/android\"\u003e\n\n  \u003crestriction\n    android:key=\"downloadOnCellular\"\n    android:title=\"@string/download_on_cell_title\"\n    android:restrictionType=\"bool\"\n    android:description=\"@string/download_on_cell_description\"\n    android:defaultValue=\"true\" /\u003e\n\n\u003c/restrictions\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinpowered%2Freact-native-mdm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinpowered%2Freact-native-mdm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinpowered%2Freact-native-mdm/lists"}