Using Google Calendar

Hi,

being new to Corona and mobile app dev, but also an old school programmer, I have a nice idea for an app.

In that app I would need read access to Google Calendar.

Apart from 1 disturbing message that Google is about to drop OAUTH support I could not find any useful info.

So, my questions:

  • is it doable to access (read-only) Google Calendar from an app created with Corona?

  • is there a plugin availbale for it?

Any tips very welcome!

TIA,

   Arie

Hi Xapwing,

Did anyone get back to you about your request?

I too would be interested in accessing the Google Calendar so I can get holiday events I can then add to a message, i.e happy father day etc. I’ve not been able to find any information for accessing Google Calendar only information to write and event to a Calendar for IOS.

Definitely would come in handy if it is possible as events like Easter, Father Day etc are always on different dates and there also holidays that are also only relevant to the devices region. I’ve seen plugins to create your own calendar but not one to access the existing one on a device which for me would be far more practical.

Hope you can help?

Kind Regards

Liam 

I don’t think it would be easy to implement that feature on corona for android, because there are so many versions of android, and vendors on top having their own apps (including calendar apps) that would be challenging if doable at all. saying that, with corona enterprise, you can do native code, so if it’s possible in native code, it will be possible on Corona Enterprise. With free version of corona corona…it’s not present that feature or doable, as far i know.

Hi Carloscosta,

Thank you for the response. I think that probably going to be the case too.

Its one of those things that would have been nice to be able to do but if it is possible its beyond my understanding.

Am i correct in thinking the native code for Corona is C++?

I’m good C++ as it was my first main language I learnt but I’ve not yet looked at any of the native code for Corona.

Think that would be a mountain to climb in itself lol.

Thanks though for the advice

Kind Regards

Liam

 

C++ is a language you can use. If you want to write native code for android you need be able to write android. I am working on a google sign in plugin which will allow you to google services thought lua code.

There seems to be a lot of partial information in this post.  Let me try and clear some of it up.

  1. Google Calendar has a RESTful API which you should be able to use network.request() to access. The keyword there is “should”. I did a quick lookup for their API and its really complex. Their authentications seems to go beyond a simple OAUTH2 setup.

  2. I don’t think versions of Android are going to have any effect on this. This is simply trying to network to the Google Calendar servers and the mobile OS shouldn’t come into play. 

  3. Unless Google has various pre-built SDK’s for iOS and Android, were one could build a plugin around it, I’m not sure how native builds are going to be of much help here. You can of course use Objective-C/Swift for iOS, Java for Android or C++ for both to do native tasks. 

Now this may not help the OP, since we don’t know what Arie wants to do, but for @zombieboffinstudioltd, you should look at:

https://holidayapi.com/ - not free, but super easy to use

https://www.programmableweb.com/category/holidays/api - lists  more APIs

https://stackoverflow.com/questions/14203708/is-there-a-comprehensive-api-or-json-xml-list-with-public-bank-holidays-worldwid - more discussion.

https://www.predicthq.com/pricing/api

http://holidayapi.riccardoravaro.com/

I’m a bit confused on the holidayapi.com site, there is plenty of googling that says it’s free, but signing up, it’s clearly not. But the last link seems to say the source is open source, so you potentially could setup your own server. I don’t have time to do a full research on this for you, hopefully this will get you started.

Rob

Hi Xapwing,

Did anyone get back to you about your request?

I too would be interested in accessing the Google Calendar so I can get holiday events I can then add to a message, i.e happy father day etc. I’ve not been able to find any information for accessing Google Calendar only information to write and event to a Calendar for IOS.

Definitely would come in handy if it is possible as events like Easter, Father Day etc are always on different dates and there also holidays that are also only relevant to the devices region. I’ve seen plugins to create your own calendar but not one to access the existing one on a device which for me would be far more practical.

Hope you can help?

Kind Regards

Liam 

I don’t think it would be easy to implement that feature on corona for android, because there are so many versions of android, and vendors on top having their own apps (including calendar apps) that would be challenging if doable at all. saying that, with corona enterprise, you can do native code, so if it’s possible in native code, it will be possible on Corona Enterprise. With free version of corona corona…it’s not present that feature or doable, as far i know.

Hi Carloscosta,

Thank you for the response. I think that probably going to be the case too.

Its one of those things that would have been nice to be able to do but if it is possible its beyond my understanding.

Am i correct in thinking the native code for Corona is C++?

I’m good C++ as it was my first main language I learnt but I’ve not yet looked at any of the native code for Corona.

Think that would be a mountain to climb in itself lol.

Thanks though for the advice

Kind Regards

Liam

 

C++ is a language you can use. If you want to write native code for android you need be able to write android. I am working on a google sign in plugin which will allow you to google services thought lua code.

There seems to be a lot of partial information in this post.  Let me try and clear some of it up.

  1. Google Calendar has a RESTful API which you should be able to use network.request() to access. The keyword there is “should”. I did a quick lookup for their API and its really complex. Their authentications seems to go beyond a simple OAUTH2 setup.

  2. I don’t think versions of Android are going to have any effect on this. This is simply trying to network to the Google Calendar servers and the mobile OS shouldn’t come into play. 

  3. Unless Google has various pre-built SDK’s for iOS and Android, were one could build a plugin around it, I’m not sure how native builds are going to be of much help here. You can of course use Objective-C/Swift for iOS, Java for Android or C++ for both to do native tasks. 

Now this may not help the OP, since we don’t know what Arie wants to do, but for @zombieboffinstudioltd, you should look at:

https://holidayapi.com/ - not free, but super easy to use

https://www.programmableweb.com/category/holidays/api - lists  more APIs

https://stackoverflow.com/questions/14203708/is-there-a-comprehensive-api-or-json-xml-list-with-public-bank-holidays-worldwid - more discussion.

https://www.predicthq.com/pricing/api

http://holidayapi.riccardoravaro.com/

I’m a bit confused on the holidayapi.com site, there is plenty of googling that says it’s free, but signing up, it’s clearly not. But the last link seems to say the source is open source, so you potentially could setup your own server. I don’t have time to do a full research on this for you, hopefully this will get you started.

Rob