Skip to content

Commit

Permalink
add test page for 3ds
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjali committed Oct 16, 2024
1 parent 30611a9 commit 3283a35
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/test3ds.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>Open App</title>
<script>
window.onload = function() {
var userAgent = navigator.userAgent || navigator.vendor || window.opera;

// Redirect based on device type
if (/android/i.test(userAgent)) {
// Redirect to Android app
window.location = "d1demoapp://com.thalesgroup.gemalto.d1.validation/PushToSchemeResult";
} else if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
// Redirect to iOS app
window.location = "demoscheme://com.thalesgroup.gemalto.d1.demo";
} else {
// Fallback to web version or a download link
window.location = "https://www.thalesgroup.com";
}
};
</script>
</head>
<body>
<p>If you are not redirected, <a href="https://www.thalesgroup.com">click here</a>.</p>
</body>
</html>

0 comments on commit 3283a35

Please sign in to comment.