Ionic + chromecast

Im trying to connect a chromecast with my ionic app.

In the browser the code below works fine, but when I run with “ionic run android”, isAvailable returns false always.

<script type="text/javascript">
  window['__onGCastApiAvailable'] = function(isAvailable) {
        var options = {};
        options.receiverApplicationId =;
        options.autoJoinPolicy = chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED;
<script type="text/javascript" src=""></script>

Any ideas?

I have similar issue any update please

1 Like