getestet mit und ohne die App installiert. Gibt es eine Möglichkeit, diese Fehlermeldung in Safari zu unterdrücken oder zu vermeiden?
Code: Select all
Open in App
body {
font-family: Arial, sans-serif;
text-align: center;
padding: 40px 20px;
background: #f9f9f9;
color: #333;
}
.container {
max-width: 400px;
margin: 0 auto;
}
h1 {
font-size: 1.4em;
margin-bottom: 10px;
}
p {
margin: 10px 0 20px;
font-size: 14px;
color: #555;
}
.loader {
border: 4px solid #f3f3f3;
border-top: 4px solid #1ab394;
border-radius: 50%;
width: 36px;
height: 36px;
animation: spin 1s linear infinite;
margin: 20px auto;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.btn {
display: inline-block;
margin: 8px;
padding: 10px 18px;
border-radius: 4px;
font-size: 14px;
font-weight: bold;
text-decoration: none;
color: #fff;
transition: background .3s;
}
.btn-google { background: #4285F4; }
.btn-google:hover { background: #3367D6; }
.btn-apple { background: #000; }
.btn-apple:hover { background: #333; }
Opening App...
If nothing happens, you’ll be redirected shortly.
Or install the app:
[url=#]Google Play[/url]
[url=#]App Store[/url]
(function(){
const params = new URLSearchParams(location.search);
const permit = params.get('permitno')||'';
const vin = params.get('vin')||'';
const distance = params.get('distance')||'';
const scheme = `parsmobile://app?permitno=${encodeURIComponent(permit)}&vin=${encodeURIComponent(vin)}&distance=${encodeURIComponent(distance)}`;
const play = 'https://play.google.com/store/apps/details?id=com.microsoft.copilot';
const appstore = 'https://apps.apple.com/in/app/microsoft-copilot/id6472538445';
document.getElementById('google-link').href = play;
document.getElementById('apple-link').href = appstore;
// try to open app
location.href = scheme;
setTimeout(function() {
const ua = navigator.userAgent || navigator.vendor || window.opera;
document.getElementById('fallback').style.display = 'block'; // show fallback buttons
if (/android/i.test(ua)) {
location.href = play;
}
else if (/iPad|iPhone|iPod/.test(ua) && !window.MSStream) {
location.href = appstore;
}
}, 1200);
})();