Is there a way to troubleshoot and resolve the following error:
WEBPACK_IMPORTED_MODULE_3_ionic_native.a.open is not a function
while utilizing the NishanthKabra/Ionic2_GoogleCalendar solution.
I am interested in integrating Google Calendar into my Ionic 3 application, specifically creating and saving events using Google Calendar. How can I go about implementing this?
This is a snippet of my code:
.ts file:
calendarEvent:any = {};
attendees = [{
email:""
}];
validation:any = {};
CLIENT_ID = 'xxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com';
SCOPES = ["https://www.googleapis.com/auth/calendar","https://www.googleapis.com/auth/calendar.events","https://www.googleapis.com/auth/calendar.events.readonly","https://www.googleapis.com/auth/calendar.readonly","https://www.googleapis.com/auth/calendar.settings.readonly"];
APIKEY = "xxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
REDIRECTURL = "http://localhost/callback";
// (code block continues...)
.html file:
<ion-navbar *navbar>
<button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>Ionic2 + Google Calendar</ion-title>
</ion-navbar>
<ion-content padding class="getting-started">
<ion-list>
<ion-item-group>
...
</ion-item-group>
</ion-content>