如何将封闭轨道中的应用程序发布定位到组织?

How to target app releases in closed tracks to organizations?

我使用 Play 管理中心向我自己的组织发布了一个封闭轨道的私人应用,here 解释道。

定价和分发 -> 用户程序 -> 托管 Google Play 中显示:

This app is privately targeted to 1 organization.

You can also target app releases in closed tracks to organizations. Manage closed tracks or Learn more

发布管理 -> 应用发布 -> 管理测试人员下我添加了我的组织。

尽管如此,在我的设备的 Android 管理 Api 策略中将我的应用程序设置为强制安装时,我的私人应用程序不会安装,而且我的专用设备也看不到使用该政策。

之前,我发布了一个私人应用程序作为我组织的生产版本,一切都很顺利。 那么我究竟需要做什么才能在封闭式轨道发布中针对我的组织?

试试这个 API Custom App API。将您的私有应用程序发布到您的组织并等待大约 10 分钟直到应用程序获得批准,然后您才能安装到您注册的设备上。

我发现您只需将 "releaseTrackId" 添加到我的应用程序 json 政策内的对象。正如它所说 here and here

List of the app’s track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible tracks. If the list contains no track IDs, devices only have access to the app’s production track. More details about each track are available in AppTrackInfo.

所以基本上在我的特定策略的应用程序数组中,我只需要在 "accessibleTrackIds" 数组中添加我的封闭轨道应用程序的 "releaseTrackId"。

"applications": [
    {
      "packageName": "some.package.com.closedtrackapp",
      "installType": "FORCE_INSTALLED",
      "accessibleTrackIds": [
        "myreleaseTrackId"
      ]
    }    
  ],

看来您还需要将关闭曲目的曲目ID添加到您的策略中: 请参阅 this link 了解 ApplicationPolicy

{
  "packageName":"<package id>",
  "installType":"PREINSTALLED",
  "accessibleTrackIds":[
    "<track id>"
   ]
}

曲目 ID 在播放控制台上找到 URL(releaseTrackId 参数)