从Cordova读取Microsoft Intune应用程序配置属性 [英] read Microsoft Intune app configuration properties from cordova

查看:116
本文介绍了从Cordova读取Microsoft Intune应用程序配置属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

app configuration properties can be deployed to an iOS app with the Microsoft Intune app configuration policies. These properties are configured in plist format and deployed like explained in the docs https://github.com/MicrosoftDocs/IntuneDocs/blob/master/intune/app-configuration-policies-use-ios.md

似乎此属性可以由Intune iOS SDK读取为"MDM应用配置",如此处所述:

it seems like this properties can be read by the Intune iOS SDK as "MDM app config" like explained here: https://docs.microsoft.com/en-us/intune/app-sdk-ios#enable-targeted-configuration-appmam-app-config-for-your-ios-applications (i could not try this)

Intune如何部署这些plist设置?是否在应用程序专用目录中创建plist文件?如果是,该文件如何命名?

how does Intune deploy these plist settings? Does it create an plist file in the apps private directory? If yes, how is this file called?

如果没有,如何在没有intune sdk的情况下从cordova访问此属性?我在SDK源代码中找不到有关如何存储/接收它们的任何提示.

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.

推荐答案

NSUserDefaults是正确的存储,通过使用cordova-plugin-emm-app-config插件,我发现来自MDM服务器的值存储在com.apple.configuration.managed词典密钥中NSUserDefaults.

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.

因此,像这样读取MDM应用配置对于Intune来说效果很好:

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

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

这篇关于从Cordova读取Microsoft Intune应用程序配置属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆