EDIT VERY SIMPLE CODE (DEEPLINK/OPEN APP ON PHONE)

  • Status: Closed
  • Prize: $10
  • Entries Received: 14

Contest Brief

Please look at the following code, if you are on laptop it works as it should directing you to the "Please subscribe)
But if you are on smartphone, it doesn't work- Please get back to me if you think you can help :)

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script type="text/javascript">
window.onload = function() {

var desktopFallback = "https://bit.ly/IPFIXYT",
mobileFallback = "https://www.youtube.com/channel/UC91cTahWYcGDZVvAJYNZFqg?sub_confirmation=1",
app = "vnd.youtube://https://www.youtube.com/channel/UC91cTahWYcGDZVvAJYNZFqg?sub_confirmation=1";

if( /Android|iPhone|iPad|iPod/i.test(navigator.userAgent) ) {
window.location = app;
window.setTimeout(function() {
window.location = mobileFallback;
}, 25);
} else {
window.location = desktopFallback;
}

function killPopup() {
window.removeEventListener('pagehide', killPopup);
}

window.addEventListener('pagehide', killPopup);

};
</script>
</body>
</html>
<!-- /wp:html -->

Recommended Skills

Top entries from this contest

View More Entries

Public Clarification Board

  • prantogpi
    prantogpi
    • 4 months ago

    Hello, please check entry #10

    • 4 months ago
  • rishabhkanhaiya8
    rishabhkanhaiya8
    • 4 months ago

    hi sir please check #8 , #9 .

    • 4 months ago
  • daniilkurka
    daniilkurka
    • 4 months ago

    Hi dear. Please check #4 Danyil K.

    • 4 months ago
  • wedecoder
    wedecoder
    • 4 months ago

    Hello, I have the solution to your problem. Direct message me, I will show you how to fix it.

    • 4 months ago

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!