Hello we have developed our first enterprise app recently. We are using the "In-House" option to create the distribution certificate. Client is not using the app yet. But he will be using it soon. Meanwhile i got a question. He will use the app and in future if there are any updates to the app from our side, we want the client to have it updated on his side as well . Like right now I have apps installed on my iPhone. I get update from AppStore saying the XYZ app has been updated. So i install the update. Now if our client is using the app and has saved some data on it(our app uses core data, and we built it in a way that client can store some data on the device) we want to send an update to him that would install the update, but not erase any existing client data.Is that possible? How do i do it?I am using over the air installation right now to install the app. We have a secure server, where the .ipa and .plist files are present and we have a download html page. Client clicks the link and the app gets installed. Please let me know if you need more information. Thanks.
相关问题
- How does the setup bootstrapper detect if prerequi
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- Getting errors / failing tests when installing Pyt
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- How do you make an installer for your python progr
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
For app updates, the existing app data persists if the bundle ID for the app stays the same.
Apple explains Enterprise App Deployment and app updates here: http://help.apple.com/iosdeployment-apps/mac/1.1/#app43ad802c
I'd also recommend including an update checker in-app.
To do that, iVersion is a ios library by Nick Lockwood (aka Charcoal Design) that will help you to do this. It's available here: https://github.com/nicklockwood/iVersion
Thanks to Joe for a fantastic response. Here is the extended version translated to swift. You can put it inside of the
viewDidLoad
of your main view controllerYes, it is possible. When you deploy an Enterprise application it requires a plist that contains metadata about the application. This metadata includes the version number that you can use to check for updates.
Once you detect the update is available navigate the user to the download URL
and it will install over the existing version leaving all data in-tact and even upgrade the CoreData database if you setup auto migration and make changes.
Just distribute the update the same way you distribute the original. The user retains the data from the earlier version.