[英]How do accessible track ids get applied to app using Android Management API
I'm using the Android Management API to provision kiosk tablets.我正在使用 Android 管理 API 来配置信息亭平板电脑。 I'm going through app testing - note that I'm using managed google play, and that this app is tied to an organization.我正在进行应用程序测试 - 请注意,我正在使用托管的 Google Play,并且此应用程序与组织相关联。 I was able to provision via QR code, it downloaded the app to all of our devices (we have a separate policy per device).我能够通过二维码进行配置,它将应用程序下载到我们所有的设备上(我们对每台设备都有单独的政策)。 This all went swimmingly, really appreciate everyone that worked on this... it has made my life easier!这一切都进行得很顺利,非常感谢为此工作的每个人……它让我的生活更轻松!
I didn't realize during this process that you could specify track id's;在此过程中我没有意识到您可以指定曲目 ID; I had just pushed the app to the production track.我刚刚将应用程序推到了生产轨道。 Going forward, I want to provision devices with either alpha, beta, or internal app testing tracks.展望未来,我想为设备提供 alpha、beta 或内部应用程序测试轨道。 I did a release for internal 3 days ago, and a release for alpha and beta respectively yesterday.我在 3 天前发布了内部版本,昨天分别发布了 alpha 和 beta 版本。 I created a new policy for a new test device and specified the track ids.我为新测试设备创建了新策略并指定了轨道 ID。 I've done one id a time, just wanting to test that it downloads the app version from the track, and have also done it where I have specified all 3 track ids in the policy.我一次只做了一个 id,只是想测试它是否从轨道下载应用程序版本,并且还在我在策略中指定了所有 3 个轨道 id 的地方完成了它。 No matter, it keeps downloading the version that I have on production track.不管怎样,它一直在下载我在生产轨道上的版本。 For reference, the prod.作为参考,产品。 version code is 5 @ 0.1.3, and the other 3 tracks are all higher version codes: Internal, 7 @ 0.1.4;版本号为5@0.1.3,其他3轨均为更高版本号: Internal,7@0.1.4; Alpha, 10 @ 0.1.4, and Beta, 9 @0.1.4. Alpha,10 @ 0.1.4,Beta,9 @0.1.4。
Am I misunderstanding how all of this is supposed to work?我是否误解了所有这些应该如何工作? I'm wondering if perhaps not enough time has passed, that maybe the app's track info is just not updated yet.我想知道是不是时间还不够长,也许应用程序的曲目信息还没有更新。 When I query enterprises.applications.get for the app, the appTracks[] are empty.当我查询应用程序的 enterprises.applications.get 时,appTracks[] 是空的。
Side note, if I try to set a min.旁注,如果我尝试设置最小值。 version code that is > 5, I get this error message: "Invalid minimum version code 7 for <app_name>. The published version code is 5".版本代码 > 5,我收到此错误消息:“<app_name> 的最低版本代码 7 无效。已发布的版本代码为 5”。
Hope this is all clear enough;希望这一切都足够清楚; I could be misunderstanding.我可能误会了。 I appreciate any help.我感谢任何帮助。
For the release tracks to be available to your organization, you have to add the enterprise ID in the track under Manage testers > Organizations
.要使发布轨道可供您的组织使用,您必须在Manage testers > Organizations
下的轨道中添加企业 ID。 For reference, you can check this link under Add organizations to the test
section.作为参考,您可以在Add organizations to the test
部分下查看此链接。
Once the track is added, it should be shown in the appTracks[]
when calling enterprises.applications.get
.添加轨道后,调用enterprises.applications.get
时,它应该显示在appTracks[]
中。
Track ID is added under Application Policy with the accessibleTrackIds
field. Track ID 添加在 Application Policy 下,带有accessibleTrackIds
字段。
Your policy should look similar to this one:您的政策应与此类似:
{
"packageName": "this.is.an.app",
"installType": "FORCE_INSTALLED",
"accessibleTrackIds":[
"XXXXXXXXXXXXXXXXXX"
]
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.