Home > General > Affiliate Marketing Forum

Landing Page java script issues (5)


05-06-2018 02:07 AM #1 speedy (Member)
Landing Page java script issues

Hey recently i tried to start using java code inside my landers i followed many threads here and everything working well however the vibration java script code not working on my lander im testing it under android with chrome that support it please help i tried many time but with no success

Code:
<script type="text/javascript">        (function () {
            navigator.vibrate = navigator.vibrate || navigator.webkitVibrate || navigator.mozVibrate || navigator.msVibrate;
            navigator.vibrate([1000, 500]);
        })();
    </script>


05-06-2018 06:12 AM #2 manu_adefy (Veteran Member)

Many such scripts stopped working with Chrome's new updates.

Did you try it in other browsers too, to see if it's Chrome or the script? That's what you should do every time, to identity the issue.

To me the script looks fine so my money's on updates making it obsolete.


05-06-2018 12:14 PM #3 momopotato (Member)

does anyone have problem with audio? Seems like my entry audio isnt playing anymore.


05-07-2018 03:35 AM #4 erikgyepes (Moderator)

For audio you can check out Howler JS https://howlerjs.com/.

Used to work well, also had an option for auto-play.


05-07-2018 08:20 AM #5 diplomat (Member)

Some browsers are asking for confirmation now.. to use vibration, that might be the reason too. I think default browsers in Android and iOS should still support automatic vibration, not sure tho.


Home > General > Affiliate Marketing Forum