The application can be installed from Appstore, and also via Enterprise distribution. What I basically want to implement is, if app was downloaded from appstore, I will enable/disable some features. Else if, app was installed from say, MobileIRON's appstore, which as a MDM vendor, I will enable/disable some features. The application binary that will be uploaded to both the store will be same. So how can I programmatically differ if Application was installed from Appstore or from the MDM store?
Have checked many related questions, but none actually answers this case correctly. Does reading for the embedded.mobileprovision file from the application bundle will be enough or is there any other way to detect the source of installation.
EDIT : Based upon the reply, is there anyway I can place some value somewhere during build, so that later I can extract that value based on the source of installation ? Will be very much grateful if anyone can provide some ideas.