mirror of
https://github.com/status-im/universal-links-handler.git
synced 2025-02-20 14:48:13 +00:00
Add apple association site
This commit is contained in:
parent
5d27562dc0
commit
b973007e42
@ -5,10 +5,10 @@
|
||||
}
|
||||
|
||||
function buildItunesUrl() {
|
||||
|
||||
var iosId = $('meta[property="al:ios:app_store_id"]').attr("content");
|
||||
return "https://itunes.apple.com/app/id" + iosId;
|
||||
return "https://itunes.apple.com/app/status-ethereum-anywhere/id" + iosId;
|
||||
}
|
||||
|
||||
function isAndroid(userAgent) {
|
||||
return userAgent.toLowerCase().indexOf("android") > -1;
|
||||
}
|
||||
|
13
resources/apple-app-site-association.json
Normal file
13
resources/apple-app-site-association.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"applinks": {
|
||||
"apps": [],
|
||||
"details": [
|
||||
{
|
||||
"appID": "DTX7Z4U3YA.im.status.ethereum",
|
||||
"paths": [
|
||||
"*"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
var assetLinks = require('../resources/assetlinks.json');
|
||||
var appleSiteAssociation = require('../resources/apple-app-site-association.json');
|
||||
|
||||
router.get('/health', function(req, res) {
|
||||
res.send('OK');
|
||||
@ -10,6 +11,10 @@ router.get('/.well-known/assetlinks.json', function(req, res) {
|
||||
res.json(assetLinks);
|
||||
});
|
||||
|
||||
router.get('/.well-known/apple-app-site-association', function(req, res) {
|
||||
res.json(appleSiteAssociation);
|
||||
});
|
||||
|
||||
router.get('/chat/:chatType/:chatId', function(req, res, next) {
|
||||
res.render('index', {
|
||||
title: 'Status.im join ' + req.params.chatId + ' chat',
|
||||
|
@ -6,6 +6,11 @@ shakedown GET /.well-known/assetlinks.json
|
||||
content_type 'application/json'
|
||||
contains 'sha256_cert_fingerprints'
|
||||
|
||||
shakedown GET /.well-known/apple-app-site-association
|
||||
status 200
|
||||
content_type 'application/json'
|
||||
contains 'im.status.ethereum'
|
||||
|
||||
shakedown GET /chat/public/abc
|
||||
status 200
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user