I'm using Android Management API to turn several devices into kiosks for ticketing application. I was able to create an enterprise, enroll a couple of devices, install the app manually and control it via policies. It works just fine.
Now I want to publish my app to Play Store and I want it to be available for the devices enrolled to this enterprise only. As suggested here, I restricted the app to my enterprise in Pricing & Distribution > User programs > Managed Google Play and published my app. Then I added my app to Android Management API policy to get an automatic update. But the app still isn't visible on these devices and doesn't update. When I'm changing the package name in the policy to some existing app, the device is trying to download it. So it seems like a problem with my app in store.
Do I miss something? There are other Google APIs that solve private/enterprise distribution: Android EMM Developers or Custom App Publishing API but there is no information how do these APIs work together and if I still need to register to EMM if I'm using Android Management API? I thought that it should simplify this process, but I'm getting a bit confused.
Also to mention, the enterprise owner and the store owner is the same account.