0

可以使用 Microsoft Intune 应用配置策略将应用配置属性部署到 iOS 应用。这些属性以 plist 格式配置并按照文档 https://github.com/MicrosoftDocs/IntuneDocs/blob/master/intune/app-configuration-policies-use-ios.md中的说明进行部署

似乎 Intune iOS SDK 可以将此属性读取为“MDM 应用程序配置”,如下所述: https ://docs.microsoft.com/en-us/intune/app-sdk-ios#enable-targeted-configuration -appmam-app-config-for-your-ios-applications (我无法尝试)

Intune 如何部署这些 plist 设置?它是否在应用程序私有目录中创建一个 plist 文件?如果是,这个文件是如何调用的?

If not, how can i access this properties from cordova without the intune sdk? I could not find any hints in the SDKs source code on how they are stored / received.

4

1 回答 1

2

NSUserDefaults is the right storage, by using the cordova-plugin-emm-app-config plugin i figured out the values coming from an MDM server are stored in the com.apple.configuration.managed dictionary key within the NSUserDefaults.

so reading the MDM app config like this works fine for Intune:

NSDictionary *appConfig = [[NSUserDefaults standardUserDefaults] dictionaryForKey:kConfigurationKey];

于 2018-09-24T14:06:06.230 回答