简体   繁体   中英

Best Way to Store Device Configuration for iOS Application

I am developing an iOS application that is more of a permanent install type application, and it will be different per client. So, I'm looking for the best way to install some type of a configuration on the device that the app can detect and in essence 'lock' it into a specific setting for a client. I want this to persist even if an application is deleted.

Something like a mobileconfig file would be neat, but I don't think those can contain undefined variables or be read by the applications.

I'm curious what the best and cleanest approach would be for this.

As the other answer and comments have said this cannot REALLY be done without the device being jail broken. However... There is a possible alternative.

You can use OpenUDID or SecureUDID to create a unique identifier, then create the configuration in your server database. The application will connect to your server to obtain the global configuration should the configuration file not exist. This way, if the user uses your application, then deletes the application and then reinstalls it, you will still have their configuration which the application can redownload and store locally on the device.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM