v1.11.0 assetlinks.json not generated by`bubblewrap build` and `bubblewrap fingerprint generateAssetLinks` is empty
See original GitHub issueDescribe the bug
Per the Quick Start Guide, an assetlinks.json should be generated when I run bubblewrap build
but this seems to only be the case in v1.10.0 AND when I use the new fingerprint command, the file is empty (I think because it imports and maps over the empty fingerprints
key in the generated twa-manifest.json).
To Reproduce
Steps to reproduce the behavior:
- npm install @bubblewrap/cli@v1.11.1
npx bubblewrap init --manifest=https://slate.com/media/sites/slate-com/web-app-manifest.json
- press enter at all prompts
npx bubblewrap build --skipPwaValidation
- Note that there is not assetlinks.json file generated nor a message about it
npx bubblewrap fingerprint generateAssetLinks
- Note that assetlinks.json is empty
Expected behavior
npx bubblewrap fingerprint generateAssetLinks
should generate an assetlinks.json file with content similar to v1.10.0 e.g.
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target" : { "namespace": "android_app", "package_name": "com.slate.twa",
"sha256_cert_fingerprints": ["B8:C8:22:AF:6C:D2:5B:7A:68:F4:2D:F8:BB:D8:F5:10:21:21:E4:69:E2:5A:FA:79:0C:EA:2D:C2:69:4D:FF:19"] }
}
]
Additional context
When I install v1.10.0, its bubblewrap build
generates the assetlinks.json file, so this error seems likely related to addition of the fingerprint command in #478. Note also that #478 assume that there will be something in the fingerprints array of the twa-manifest.json file, but that when I do a bubblewrap init
for my manifest that array is empty in twa-manifest.json. Both v1.10.0 and v1.11.1 generate the empty fingerprints array "fingerprints": [],
- but only v1.11.1 seems to rely on it being populated with the fingerprint command. Did I miss something?
Desktop (please complete the following information):
- OS: MacOS
- Browser n/a
- Version v.1.11.1
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top GitHub Comments
@andreban, based on what I read, we should reconsider updating https://developer.chrome.com/docs/android/trusted-web-activity/quick-start/#creating-your-asset-link-file. Since I am new and looking for first hand information, I relied on this web page and did not see
assetlinks.json
being created. It’s only when I hunted down I came to this GitHub issue. As I understand now, I must use https://developer.chrome.com/docs/android/trusted-web-activity/quick-start/#play-store-signing for generatingassetlinks.json
. Please correct me if I am wrong here. Thanksbubblewrap build
not generatedassetlinks.json
for me too! And WTF?