added URL scheme/deep linking

This commit is contained in:
cpu
2025-03-24 00:43:55 +01:00
parent 8a6947f4ea
commit 2838df5e05
8 changed files with 1142 additions and 31 deletions

View File

@@ -45,5 +45,41 @@
"sizes": "1082x2402",
"type": "image/png"
}
],
"url_handlers": [
{
"origin": "https://game-timer.virtonline.eu"
}
],
"handle_links": "preferred",
"file_handlers": [],
"protocol_handlers": [
{
"protocol": "web+gametimer",
"url": "/?action=%s"
}
],
"shortcuts": [
{
"name": "Start Game",
"short_name": "Start",
"description": "Start the game timer",
"url": "/?action=start",
"icons": [{ "src": "/icons/play.png", "sizes": "192x192" }]
},
{
"name": "Pause Game",
"short_name": "Pause",
"description": "Pause the game timer",
"url": "/?action=pause",
"icons": [{ "src": "/icons/pause.png", "sizes": "192x192" }]
},
{
"name": "Next Player",
"short_name": "Next",
"description": "Go to next player",
"url": "/?action=nextplayer",
"icons": [{ "src": "/icons/next.png", "sizes": "192x192" }]
}
]
}