by Anonymous » 27 Feb 2025, 09:30
Ich habe einige Universal -Links, um meine App zu öffnen, so etwas wie
https://website.com/app/user/ {id}, es öffnet das Benutzerprofil in meiner App und funktioniert großartig. In sozialen Netzwerken, zum Beispiel Instagram, wird die Seite in einem In-App-Browser geöffnet und meine App wird nicht geöffnet.
Code: Select all
Redirecting...
function openApp() {
var universalLink = "https://yourdomain.com/path"; // Your actual Universal Link
// Force the browser to open the Universal Link outside in-app browsers
window.location.replace(universalLink);
// Fallback: If Universal Link fails, show a button
setTimeout(function() {
document.getElementById("fallback").style.display = "block";
}, 2000);
}
Redirecting...
If the app doesn't open, click the button below.
[url=https://yourdomain.com/path]
Open in Browser
[/url]
Aber keine der beiden Alternativen funktioniert, der Fallback wird nie als Fenster aufgerufen. Ziel Attribute in einem Tags, z. app. < /p>
Ich weiß nicht, ob ich einen bezahlten Dienst als Branch.io für etwas verwenden muss, das so einfach sein könnte.>
Ich habe einige Universal -Links, um meine App zu öffnen, so etwas wie https://website.com/app/user/ {id}, es öffnet das Benutzerprofil in meiner App und funktioniert großartig. In sozialen Netzwerken, zum Beispiel Instagram, wird die Seite in einem In-App-Browser geöffnet und meine App wird nicht geöffnet.[code]
Redirecting...
function openApp() {
var universalLink = "https://yourdomain.com/path"; // Your actual Universal Link
// Force the browser to open the Universal Link outside in-app browsers
window.location.replace(universalLink);
// Fallback: If Universal Link fails, show a button
setTimeout(function() {
document.getElementById("fallback").style.display = "block";
}, 2000);
}
Redirecting...
If the app doesn't open, click the button below.
[url=https://yourdomain.com/path]
Open in Browser
[/url]
[/code]
Aber keine der beiden Alternativen funktioniert, der Fallback wird nie als Fenster aufgerufen. Ziel Attribute in einem Tags, z. app. < /p>
Ich weiß nicht, ob ich einen bezahlten Dienst als Branch.io für etwas verwenden muss, das so einfach sein könnte.>