2 Replies Latest reply on Aug 16, 2016 9:52 PM by srysh

    PhoneGap cannot load Google.charts

    srysh

      On PhoneGap 0.3.3, I use the Google charts features on my PhoneGap project.

      But after version 0.3.4, It failed to load chart library.

       

      <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>

      <script type="text/javascript" src="cordova.js"></script>

      <script type="text/javascript" src="js/index.js"></script>

      <script>

      console.log("----------------------- go to load! ---------------");

      google.charts.load('current', {packages: ['corechart']});

      google.charts.setOnLoadCallback(function(){

         console.log("---------------------we got it!!! ---------------");

      });

      app.initialize();

      </script>

       

       

      ServerLog displays 'go to load!', but never display 'we got it!!!' and chart code do not work (naturally). I never changed CSP.

      Any idea?