跳转到内容

商店政策

发布于

与 PWA 相关的商店有四家,各自回答的问题不同:Google Play 与 Microsoft Store 在 PWA 装进商店自己的容器并通过书面政策后予以接纳,Apple App Store 没有任何 PWA 路径,Galaxy Store 则通过邮件接收一个纯 URL。本页记录决定接纳与否的政策条款;带日期的逐商店结论见政策维度。

商店看不到你的 Service Worker 和 manifest 本身。它看到的是一个包(Android App Bundle、MSIX bundle)或一个 URL,并用审核原生应用的同一套条文来审它。下面各节点出对 PWA 真正起作用的条文。

提交的包是一个 Trusted Web Activity:一个只有单个 Activity 的 Android 应用,在用户的 Chrome(72 及以后)中无浏览器界面地打开你的源。所有权由 /.well-known/assetlinks.json 中的 Digital Asset Links 声明证明,声明里写有应用包名与签名证书指纹。两段政策文本决定是否接纳:

  • 垃圾内容政策的「Webviews and Affiliate Spam」一节:「We don’t allow apps whose primary purpose is to drive affiliate traffic to a website or provide a webview of a website without permission from the website owner or administrator.」封装自己源的 TWA 已通过 asset links 文件自带这项许可;封装他人站点的 TWA 则没有。
  • 付款政策第 2 节:「requiring or accepting payment for access to in-app features or services」的应用必须使用 Google Play 结算系统,「unless Section 3, 8, or 9 applies」。第 3 节排除实体商品、实体服务、账单、个人间转账与赌博。这项要求在 Web 一侧的实现是 Digital Goods API,Chrome 101 及以后可用。

Chrome 86 加入的质量标准把三类 Web 故障记为原生崩溃并写入 Android Vitals:启动时 Digital Asset Links 验证失败、离线请求未得到 HTTP 200、应用内出现 404 或 5xx 响应。第一类是签名问题;后两类由一个能从缓存应答离线导航与错误响应的 Service Worker 处理。

Microsoft Store 接收的是 PWA 本身,不是封装壳。在 Partner Center 中通过 New product > MSIX or PWA app 预留名称,在 Product management > Product Identity 读取 Package ID、Publisher ID 与 Publisher display name(英文界面),粘贴到 PWABuilder,得到一个包含 .msixbundle 与 .classic.appxbundle 的 .zip。Microsoft 写明审核「typically within 24 to 48 hours」。Microsoft Store 政策 7.20 版(2026-09-15 发布,2026-10-22 生效)有两条涉及 PWA:

  • 10.1.1:「Products submitted as web apps must be published by the domain or website owner.」
  • 10.8.1:只有游戏与 Xbox 主机上的产品必须使用 Store 应用内购买 API;「non-game products made available on PC devices may either use a secure third-party purchase API or the Microsoft Store in-product purchase API」。

代码变更经你的服务器发布,无需重新提交。manifest 变更(图标、名称、file_handlers、protocol_handlers、share_target)需要重新打包,因为 manifest 会被复制进 Windows 包。

没有 PWA 打包路径。审核指南 4.2(Minimum Functionality)写道:「Your app should include features, content, and UI that elevate it beyond a repackaged website」;4.2.2 排除「web clippings, content aggregators, or a collection of links」类应用。指南最近一次修订为 2026-06-08(Apple Developer News)。PWA 在 iOS 上的路径是 Safari 的添加到主屏幕,不经商店;套一层 WKWebView 的原生壳会按原生应用、依 4.2 审核。

三星在 2019-10-24 宣布上架 Web 应用:「To add your web app to the Samsung Galaxy Store send us the URL to [email protected]」,发布时「only visible in the US Galaxy Store」。到 2026-10 未找到该文之外的公开开发者文档,因此应把这条路径视为人工接入,而非自助提交。

商店 提交物 所有权证明 应用内数字商品规则
Google Play 含 TWA 的 AAB assetlinks.json 指纹匹配 Play 结算(付款政策第 2 节),经 Digital Goods API
Microsoft Store .msixbundle + .classic.appxbundle 政策 10.1.1:域名所有者发布 仅游戏与 Xbox 必须用 Store API(10.8.1)
Apple App Store 无 PWA 路径 不适用 不适用
Galaxy Store 邮件提交 URL 图标使用的授权协议 无文档

Microsoft 也记录了商店路径的另一面:从 Store 安装的 PWA 的 start_url 被固定在主域名上,跳转到 contoso.co.ke 这类区域域名会被视为超出 scope,Edge 会在窗口顶部显示 URL 与页面标题。从浏览器安装的 PWA 安装于用户当时所在的域名,不显示该栏。

← 返回生态总览。