We have successully done enrolment and installation of hub app.
But installation process of enterprise apps is TOTALLY AMBIGUIOUS inside hub app. Publisher id of all enterprise apps and hub app is same. Sometimes what happen is enterprise app gets installed propery.If I uninstall it, and try to install again then sometimes messagebox pop up comes and says "Contact your company person" though AET is installed in phone.
Sometimes enterprise app gets installed properly but InstallationManager.FindPackagesForCurrentPublisher() method does not contain this app entry.Why is this like this?
Whats the solution for this unabiguious nature of installatrion functionality?
Install and uninstall are asynchronous processes which, in some cases, can take several minutes to complete... How long are you waiting between steps?
Do you monitor the install state or check pending package installs? (GetPendingPackageInstalls)
Installation process happens within minute. I am manually uninstalling app after some time. Again if I try to install it, it gives error sometimes stating " There is problem with this cmopany app.Contact your company's support person for help." though AET is already installed in device.
Have you tried querying the Download node of EnterpriseAppManagement CSP, from your MDM server, when this happens?
SyncML Get command example:
<Get> <CmdID>2</CmdID> <Item> <Target> <LocURI> ./Vendor/MSFT/EnterpriseAppManagement/4000000001/EnterpriseApps/Download?list=StructData </LocURI> </Target> </Item> </Get>NOTE: replace 4000000001 with your own Enterprise ID.