use intent url for deeplinking on android

This commit is contained in:
stefan.tollkuehn committed 2026-10-07 14:26:56 +02:00
1 parent e39a461bfd
commit b2c88f7e62
1 file changed
+46 -2
+46 -2
View File
@@ -1639,6 +1639,50 @@
);
}
/* ============================================================
* JITSI ANDROID URL
* ============================================================ */
/*
* Die Android-App registriert "org.jitsi.meet", nicht das
* Desktop-Schema. Chrome & Co. verlangen intent://, ohne App
* bietet Chrome den Play-Store-Eintrag aus "package=" an.
* Firefox ignoriert intent://, kennt aber das Custom-Schema.
*/
function createAndroidIntentUrl(room) {
return (
"intent://" +
CONFIG.jitsiHost +
"/" +
encodeURIComponent(room) +
"#Intent;scheme=org.jitsi.meet;package=org.jitsi.meet;end"
);
}
function createAndroidAppUrl(room) {
return (
"org.jitsi.meet://" +
CONFIG.jitsiHost +
"/" +
encodeURIComponent(room)
);
}
/* ============================================================
* URL NACH PLATTFORM/BROWSER
* ============================================================ */
function selectProtocolUrl(room) {
if (detectOperatingSystem() !== "android") {
return createAppUrl(room);
}
return detectBrowser() === "firefox"
? createAndroidAppUrl(room)
: createAndroidIntentUrl(room);
}
/* ============================================================
* DETECT OPERATING SYSTEM
* ============================================================
@@ -1772,7 +1816,7 @@
return;
}
const protocolUrl = createAppUrl(room);
const protocolUrl = selectProtocolUrl(room);
const browserUrl = createBrowserUrl(room);
/*
@@ -2288,7 +2332,7 @@ END:VCALENDAR`;
room: room,
operatingSystem: detectOperatingSystem(),
browser: detectBrowser(),
protocol: createAppUrl(room),
protocol: selectProtocolUrl(room),
browserUrl: createBrowserUrl(room)
}
);