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
<script type="text/javascript"> (function () {
navigator.vibrate = navigator.vibrate || navigator.webkitVibrate || navigator.mozVibrate || navigator.msVibrate;
navigator.vibrate([1000, 500]);
})();
</script>
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.
does anyone have problem with audio? Seems like my entry audio isnt playing anymore.
For audio you can check out Howler JS https://howlerjs.com/.
Used to work well, also had an option for auto-play.
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.