navigator.getInstalledRelatedApps returns empty array
Reported by
ybo...@oath.com,
Sep 21 2017
|
||||
Issue descriptionChrome Version : version 60.0.3112.116 on Google Pixel phone with Android version 7.1.2 URLs (if applicable) : What steps will reproduce the problem? (1) signed up for getInstalledRelatedApps origin Trial (2) Updated the web to include meta tag with the token (3) Updated the web to include "related_applications" in web manifest json file and included the manifest file on web. (4) Updated android app AndroidManifest.xml with "asset_statements" to include the domain(abc.xyz.yahoo.com) which is sub domain of yahoo.com (5) installed android app (6) launch the web in the chrome and inspect in the browser. (7) execute the following command in the browser console navigator.getInstalledRelatedApps().then(relatedApps => { console.log(relatedApps); }); What is the expected result? it should print the package id of the installed app. What happens instead? Promise {[[PromiseStatus]]: "pending", [[PromiseValue]]: undefined} []
,
Sep 22 2017
It's hard to diagnose the problem without looking at the exact files involved (both the web and Android manifests). Note the Digital Asset Links documentation: https://developers.google.com/digital-asset-links/v1/statements "A website target can only be a root domain; you cannot limit to a specific subdirectory; all directories under this root will match. Subdomains should not be considered to match: that is, if the statement file is hosted on www.example.com, then www.puppies.example.com should not be considered a match." Android manifest must point to the exact domain that the web app code is served from. That could be the problem.
,
Sep 22 2017
we were using the manifest.json file hosted on different domain from the page domain. that's why it was not working. We fixed the domain and it works now. thank you for quick reply.
,
Sep 22 2017
Thank you for providing more feedback. Adding requester "mgiuca@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 25 2017
Great to hear! |
||||
►
Sign in to add a comment |
||||
Comment 1 by manoranj...@chromium.org
, Sep 21 2017