fullcalendar not connecting with gcal -why?

89 views Asked by At

I have the calendar running well but it will not connect to the public test Google Calendar I have made. I have been through all the steps twice to make sure I didnt miss anything. I know its connecting properly since when I change the API key it throws an error. In my google developers dash I can see requests being made for data but they dont show in the actual Fullcalendar. There are no errors in the inspector console. Can anyone who has connected FullCalender to gcal shed some light on what I am missing? Here is the complete code:

<!DOCTYPE html>
<html>
    <head>
        <!--
        Customize this policy to fit your own app's needs. For more guidance, see:
            https://github.com/apache/cordova-plugin-whitelist/blob/master/README.md#content-security-policy
        Some notes:
            * gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication
            * https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
            * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
                * Enable inline JS: add 'unsafe-inline' to default-src
        -->
        <meta http-equiv="Content-Security-Policy" content="default-src * gap: ws: https://ssl.gstatic.com;style-src * 'unsafe-inline' 'self' data: blob:;script-src * 'unsafe-inline' 'unsafe-eval'; media-src *; img-src 'self' data: content:;">
        <meta name="format-detection" content="telephone=no">
        <meta name="msapplication-tap-highlight" content="no">
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
        <link rel="stylesheet" type="text/css" href="css/index.css">
        <title>Hello World</title>
        <link rel="stylesheet" href="fullcalendar.css"/>
        <script src="lib/jquery.min.js"></script>
        <script src="lib/moment.min.js"></script>
        <script src="fullcalendar.js"></script>
        <script type="text/javascript" src="gcal.js"></script>

        <script type="text/javascript">
$(document).ready(function() {
    $('#calendar').fullCalendar({
        googleCalendarApiKey: 'AIzaSyAq_BYJLX78-t4Xn6g4wZouE0D1_I5HJlM',
        events: {
            googleCalendarId: '[email protected]',
            className: 'gcal-event' // an option!
        }
    });
});

</script>
    </head>

    <body>
        <div id="calendar"></div>

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

<!--        <div class="app">
            <h1>Apache Cordova</h1>
            <div id="deviceready" class="blink">
                <p class="event listening">Connecting to Device</p>
                <p class="event received">Device is Ready</p>
            </div>
        </div>
-->
0

There are 0 answers