We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

google api calendar

Thread ID:





126267 Oct 4,2016 10:57 PM UTC Oct 20,2016 01:39 PM UTC Xamarin.Forms 9
Tags: SfSchedule
Andres Alejandre
Asked On October 4, 2016 10:57 PM UTC

Is it possible to make the sfCalendar on the Xamarin.Forms or Xamarin.Android to be able to show the events I create on my gogole calendar?
I can use the api to create events from google, and all I would like is to just show them in my calendar, however the import function is apparently non-existent since I try creating a new schedule to import my ics and it just says the Schecule is missing a reference but on my nugget packages I do have reference to syncfusion calendar and schedule.

All of this is made on C# in Visual Studio 2013 with Xamarin Forms up to date

Hemalatha Marikumar [Syncfusion]
Replied On October 5, 2016 05:07 PM UTC

Hi Andres,

Thanks for contacting Syncfusion Support.

Currently we don't have support to import the events from Google Calendar in both Schedule and Calendar control in Android, iOS platforms. We have provided support for importing the Icf events in Schedule for other platforms earlier and we have forwarded your query to the concern team for implementing in Xamarin platform. We will update the completed details once we get reply from that team.

Query: Schedule is missing the reference

Could you please update the more details that is in which platforms Nuget packages’ reference you have faced this missing reference.

Hemalatha M.R.

Andres Alejandre
Replied On October 5, 2016 06:41 PM UTC

I have the Syncfusion.Xamarin.sfCalendar,         Syncfusion.Xamarin.sfCalendar.Android,      Syncfusion.Xamarin.sfSchedule     and   Syncfusion.Xamarin.sfSchedule.Android    nuget packages installed, and on my program I have:

using Syncfusion.SfCalendar.XForms;
using Syncfusion.SfSchedule.XForms;
using Syncfusion.SfSchedule;
using Syncfusion.SfCalendar;

but still when I type 
 Schedule sch = new Schedule();

I get Schedule highlighted on red saying Visual Studio cannot find the type or name for that, asking me if I'm missing a using or a reference

Andres Alejandre
Replied On October 5, 2016 06:46 PM UTC

Also, I found a similar question about 2 years ago, is Syncfusion adding compatibility with google calendar any time soon?

Sivakumar Punniya Moorthi [Syncfusion]
Replied On October 6, 2016 02:44 PM UTC

Hi Andres,

Currently we don’t have any support to import the events from Google Calandar in Schedule control. We have logged a feature request regarding this in our database. This feature can be implemented in any of our upcoming releases. We will update you once the implementation has done.

Please let us know, if you have any concerns.

Sivakumar P

Andres Alejandre
Replied On October 6, 2016 06:52 PM UTC

Thanks a lot, please do keep me posted if any upcoming update does support this, meantime I'll just try and do the conection myself, thanks

Sivakumar Punniya Moorthi [Syncfusion]
Replied On October 7, 2016 01:20 PM UTC

Hi Andres,

Thank you for the update.

Eventhough we have consider import export support as future request, we would like to provide more information to connected the google events with our schedule control. We will share those informations in two business days(Oct,11,2016).

Please let us know, if you have any query.

Sivakumar P

Sivakumar Punniya Moorthi [Syncfusion]
Replied On October 12, 2016 04:38 AM UTC

Hi Andres, 
We appreciate your patience. 
We are analyzed your requirements of showing events which are created in google calendar, in our SfSchedule control. For that please follow the below procedures to achieve your requirement. 
Configure your application with Google APIs by referring the below documentation,   
In order to get a google calendar events we can have a model class in our application as like below,  
public class GenericEvent 
        public string Title { get; set; }
        public string Location { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
So that the collection of google calendar events can be maintained in a list 
  List<GenericEvent> googleEventsCollections = new List<GenericEvent>();  
As Schedule control is having AppointmentMapping feature in it, we are able to map custom data to the control, so in order to map the above model class, please refer the below code snippet, 
//Mapping the custom appointment to the schedule 
ScheduleAppointmentMapping scheduleAppointmentMapping = new ScheduleAppointmentMapping();
            scheduleAppointmentMapping.SubjectMapping = "Title";
            scheduleAppointmentMapping.LocationMapping = "Location";
            scheduleAppointmentMapping.StartTimeMapping = "StartTime";
            scheduleAppointmentMapping.EndTimeMapping = "EndTime";
            schedule.AppointmentMapping = scheduleAppointmentMapping;
            schedule.DataSource = googleEventsCollections;
If the provided solution doesn’t meet you requirement, please revert us back with your query. We are happy to assist you.  
Sivakumar P 

Andres Alejandre
Replied On October 13, 2016 09:05 PM UTC

I am having trouble doing this with my Xamarin forms, since the Android project can make references to the Google Gdata but the Xamarin portable cannot, so the generic class that makes it portable for android and iOS cannot install that nuget package and therefore not have the reference needed to use the google gdata, is this solution only limited to Android or am I doing something wrong with the google Gdata references?
p.s. should you need my project I can attach it in a .zip later on if you need me to
and also thanks for the reply : )

Sivakumar Punniya Moorthi [Syncfusion]
Replied On October 20, 2016 01:39 PM UTC

Hi Andres,

We appreciate your patience. 

We are analyzing your requirement to retrieve google data in Xamarin Forms, where we have faced the below issue while request the service,
An unhandled exception of type 'Google.GData.Client.GDataRequestException' occurred in Google.GData.Client.dll
Additional information: Execution of authentication request returned unexpected result: 404
On further analysis, we came across GitHub examples for Xamarin Android and Xamarin iOS, refer here, but not for Xamarin Forms. Currently we are further analyzing with Authenticate App using Azure. Could you progress with the provided information and retrieve data from it. So that those events can be displayed in our Schedule control through the procedure suggested in our earlier update.

Sivakumar P


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon