read Microsoft Intune app configuration properties from cordova

人走茶凉 提交于 2019-12-11 17:54:44

问题


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

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)

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?

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.


回答1:


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];



来源:https://stackoverflow.com/questions/52261939/read-microsoft-intune-app-configuration-properties-from-cordova

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!