Skip to content

Commit

Permalink
feat(web): support android asset links (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHole1 committed Dec 3, 2021
1 parent 2caf395 commit 537f898
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/flat-web/deploy/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ http {
try_files /apple-app-site-association.json 200;
}

location /.well-known/assetlinks.json {
add_header Content-Type 'application/json; charset=utf-8';
add_header Cache-Control no-cache;

try_files /.well-known/assetlinks.json 200;
}

location / {
add_header Cache-Control no-cache;
try_files $uri /index.html;
Expand Down
10 changes: 10 additions & 0 deletions web/flat-web/public/.well-known/assetlinks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "io.agora.flat",
"sha256_cert_fingerprints": ["EB:AB:73:0D:1D:35:87:C5:23:82:88:F5:33:99:D6:BC:A3:A5:04:32:40:D6:00:12:4A:01:CE:FB:37:7B:EC:58"]
}
}
]

0 comments on commit 537f898

Please sign in to comment.