How to add script in ionic index.html (Tawk chat)


#1

index.html

<bod>
...............
.
............
..............
<!--Start of Tawk.to Script-->
 <script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
 var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/5968515a6edc1c10b0345ef8/default';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
 s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->
</body>

ionic cordova emulate android --livereload work

ionic cordova emulate android not working

what to do


#2

whitelist the required urls in your config.xml
https://cordova.apache.org/docs/en/7.x/guide/appdev/whitelist/index.html