Error loading external js library


#1

Hi,

Im including the google cast external javascript library. When I run with ionic serve it works good, but when I run the app in the phone, the library is not loaded. Debugging can see that :

The “http” is replaced by “file”!
I tried to include the libraries with that code:

script src="//www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"></script
script src=“https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1”></script
script src=“http://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1”></script

and with type=“text/javascript” added; but all codes replaces http by file, and the library is not loaded.

Any suggestions?