简体   繁体   English

如何使用 Android 管理 API 将可访问轨道 ID 应用于应用程序

[英]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”。

  1. How and when will my app get updated with the track releases I've created?我的应用程序将如何以及何时使用我创建的曲目版本进行更新?
  2. When the app does get the track updates, am I doing this correctly via the policies?当应用程序确实获得曲目更新时,我是否通过政策正确地做到了这一点?
  3. Once I'm able to provision an app that corresponds to the track, am I still bound by the 'published' version code?一旦我能够提供与轨道对应的应用程序,我是否仍受“已发布”版本代码的约束? Meaning, if my test tracks are of a higher version code, can they be recognized and a higher minimum set for these these tracks on the policy?意思是,如果我的测试曲目是更高版本的代码,它们能否被识别并在政策上为这些曲目设置更高的最小值?

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.

相关问题 如何获取使用 Android 管理 API 的设备 ID? - How to get Device id for using Android Management API? 如何使用android管理API获取设备的Location信息 - How to get the Location information of a device using android management API 使用 Android 管理 API 获取位置详细信息 - Get location details using Android Management API 对于 Android Spotify API,如何将专辑封面图像转换为 imageView? 我试过使用 Track 但效果不佳 - For the Android Spotify API, how do I get the album artowrk image into an imageView? I've tried using Track but no good 如何在Android中跟踪应用安装 - How do i track app installs in android 如何使用 android 应用程序在后台跟踪位置? - How to track location in the background using an android app? 如何使用Android Management API + Organisations分发私人Android应用测试轨道? - How to distribute private Android app testing tracks using the Android Management API + Organisations? 如何使用Android Management API禁用相机 - How to disable the camera using the Android Management API 如何在 Google Play 上发布私人应用程序,无论是否使用 Android 管理 API? - How do I publish private app on Google play with or without Android Management API? 有什么方法可以从应用程序获取 Android Management API 设备 ID - Is there any way to get Android Management API device id from app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM