商店政策
发布于 更新于
Google Play 和 Microsoft Store 接收 PWA,要求按商店格式打包,并符合各自审核政策。Apple App Store 没有 PWA 提交格式;Galaxy Store 方面,三星 2019 年的公告请开发者把 URL 发邮件给它,由此开始接入。这四家商店的接纳情况及核对日期见政策维度。
工作原理
链接到“工作原理”一节交给商店的是包(Android App Bundle、MSIX bundle)或 URL,Service Worker 和 manifest 不会作为单独文件提交。审核时适用原生应用的同一套条文。
Google Play
链接到“Google Play”一节提交的包是 Trusted Web Activity,是一个 Android 应用,在全屏浏览器标签页中打开你的源,不显示浏览器界面,Chrome 72 及以后支持(Chrome 概览)。Chrome 快速入门把这一能力限定在你自己拥有的网站上,所有权由 /.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 文件把应用与站点关联起来;封装他人站点则需要那位所有者的许可。
- 付款政策第 2 节规定,「requiring or accepting payment for access to in-app features or services」的应用必须使用 Google Play 结算系统,「unless Section 3, 8, or 9 applies」。第 3 节排除实体商品、实体服务、账单、个人间转账与赌博。Chrome 文档给出的 Web 一侧做法是 Digital Goods API,用于 Play 结算,Chrome 101 及以后可用(Chrome 指南)。
Chrome 86 加入的质量标准把三类 Web 故障记为原生崩溃并写入 Android Vitals,包括启动时 Digital Asset Links 验证失败、离线请求未得到 HTTP 200、应用内出现 404 或 5xx 响应。第一类常见原因是签名密钥不匹配;后两类用 Service Worker 处理,从缓存应答离线导航与错误响应。
Microsoft Store
链接到“Microsoft Store”一节Microsoft Store 接收 PWABuilder 为你的 PWA 生成的包,网站代码无需改动。在 Partner Center 中选择 New product > MSIX or PWA app 预留名称,在 Product management > Product Identity 读取 Package ID、Publisher ID 与 Publisher display name(英文界面),粘贴到 PWABuilder,得到 .zip,其中包含 .msixbundle 与 .classic.appxbundle。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:游戏(PC 游戏订阅产品中的游戏除外)与 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)需要重新打包,因为 Windows 包中保存的是 manifest 的副本。
Apple App Store
链接到“Apple App Store”一节Apple 没有记载 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-10-16(Apple Developer News)。PWA 在 iOS 上的路径是 Safari 的添加到主屏幕,不经商店;套一层 WKWebView 的原生壳会按原生应用、依 4.2 审核。
三星 Galaxy Store
链接到“三星 Galaxy Store”一节三星在 2019-10-24 宣布上架 Web 应用,要求「To add your web app to the Samsung Galaxy Store send us the URL to pwasupport@samsung.com」,发布时「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 | 仅原生应用(指南 4.2) | 不适用 | 不适用 |
| Galaxy Store | 邮件提交 URL | 接入时签署许可协议(涉及标志与图标使用) | 所引文章未说明 |
实测行为
链接到“实测行为”一节Microsoft 文档还说明,从 Store 安装的 PWA,其 start_url 固定在主域名上。跳转到 contoso.co.ke 这类区域域名会超出 scope,Edge 会在窗口顶部显示 URL 和页面标题。从浏览器安装时,PWA 使用用户当时访问的域名,不显示这个栏。
另请参阅
链接到“另请参阅”一节- Google Play Spam policy(support.google.com)
- Microsoft Store Policies(learn.microsoft.com)
- App Store Review Guidelines(developer.apple.com)
- 商店接纳政策数据
- Trusted Web Activity
- Digital Goods API
- 分发
- 上架应用商店
← 返回生态总览。