Google Calendar API - Get Events

Hello,

I am getting ready to launch my app, so I am going through and double checking that everything is working properly. Unfortunately, while conducting these tests, I found that when i create an event it does add to my google calendar, but in the app it isn’t showing up. Also, if I add an event on the google calendar app, it does not show up on the app. Does anyone know what the issue might be?

I do not have any errors anywhere, but this is all the APIs I have set up and what my work flow looks like for my “Save Event” Button.

Hmm, good question. :thinking: How are you displaying the calendar events? Do the events show up when you refresh the page?

I am displaying the calendar events through the Calendar Element and since this is a native mobile app, I have the calendar on a web view, but put the web view on the mobile page. No, when I refresh the page it does not show up. It has been a few hours and it still isn’t showing.

Also, all of this was working last week, and I haven’t changed anything with the personal calendar.

Maybe an auth token expired? Not sure why it would create the event but not let you view them. Can you share a screenshot of the datasource so we can check it out?

I mean a screenshot of your data source in the editor. That’s your database.

Sorry, I really don’t have that much experience lol … clearly

No worries, we all start somewhere. Can you click on the data source too please. It’s the blue text that says Google Cal - Get Events’s items.

I want to see how you have that set up. :blush:

Ok, are any events showing up at all? Or just not the new ones you are making?

I do have some events appearing, but only ones that were on my calendar it seems prior to last Tuesday.

But when you create an event within your app, it adds it to your calendar though? It just doesn’t show up in your app?

It sort of sounds like you need to re-authenticate your account. I’m not 100% sure but are you refreshing your token when it expires?

Yes that is correct

Ok, what does your refresh token workflow look like? Is that working?

Can you go into your database and check that the token hasn’t expired? Don’t screenshot it, just verify it.

Have you tried connecting to Google Calendar again to refresh the token to see if more data comes in?


Side note. I typically do refresh tokens and handle those type of things on the backend workflows to handle the security for it. You wouldn’t want to accidentally leak tokens.

Also, double check your privacy rules to make sure you aren’t leaking those either.

The token hasn’t expired. I tried running as a test user and got a new token, but when I tried to access google calendar it popped this up.

Could this have something to do with the issue?

Also, can you point me in the direction of the privacy rules so I can double check those?

Yeah, that is probably the issue here. :+1:

Privacy rules is in your data tab under privacy.

Double check your app in the security dashboard, this will help to make sure you are more secure.

Perfect! Thank you.

Do you have any suggestions on where I need to go to fix this? Any information will help lol

I think it is looking for an https://

Does your app use https?

You probably need to go to the google console and see if the error pops up there to see what they say you need to do. :blush:

Thank you!