Microsoft-Technologien, die auf dem .NET-Softwareframework basieren. Verschiedene Themen, die nicht in bestimmte Kategorien passen.
<script>
(function() {
const CONFIG = {
appSchema: "nameofmyapp://app",
playStore: "https://play.google.com/store/apps/details?id=com.company.nameofmyapp“,
appStore: "https://apps.apple.com/app/id…“,
desktopFallback: "https://www.xxx.com"
};
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
let redirectUrl = CONFIG.desktopFallback;
let isMobile = false;
if (/android/i.test(userAgent)) {
redirectUrl = CONFIG.playStore;
isMobile = true;
} else if ((/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) || (/Macintosh/.test(userAgent) && navigator.maxTouchPoints && navigator.maxTouchPoints > 1 && !window.MSStream)) {
redirectUrl = CONFIG.appStore;
isMobile = true;
}
if (isMobile) {
window.location.href = CONFIG.appSchema;
setTimeout(function() {
window.location.href = redirectUrl;
}, 1500);
} else {
window.location.href = redirectUrl;
}
})();
</script>