I'd like to distribute an Enterprise iOS app such that by the time the user opens it, it is already displaying their name and other info, even though the .ipa is the same .ipa that every other user downloads. I figure that I could do this by giving the user an app download URL specific to them and generating the required Enterprise download plist to include some user data, but my question is:
Is it even possible to access/read the Plist from the download link from within the app? If so, how?
There is a way to read the enterprise download link from within the App (but I'm sure you're not asking for the code to download and read a file), but there is no way to display something different in the App based on a parameter on the index page or manifest file, without changing the IPA itself.
Unfortunately, the installed App has no knowledge of the manifest file or index page that it was downloaded from.
EDIT with References / Sources
This link, under the section, titled "Exporting Your App for Testing Outside the App Store": Exporting Your App for Testing (iOS, watchOS), discusses manifest files, but makes no mention of any chain of data from web deployment to the app.
I also spoke to a senior Apple adviser, who confirmed that there is no mechanism that gives an App any knowledge of where the App was installed from.
The only way I could think of doing this is sending all users the same link ( examplesite.com/ios/download) and also send them a unique user identifier "SG5JD5J". When the app is downloaded and opened for the first time, prompt the user to enter their unique user identification code. At which point your app can then update their plist and progress into the app.
Unfortunately the way you want to do it would require private API's or a jailbroken iOS device so that you can look at the web browsers history, find your URL (example site.com/ios/download) with a unique identifier at the end and update the plist as need be.
If you find a solution to this, please comment as I would be interested to see.
I can think of two options:
codesign
. Then just serve the IPA to the user.NSUserDefaults
: https://developer.apple.com/library/ios/samplecode/sc2279/Introduction/Intro.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With