Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Add to Google Calendar iOS #659

Open
fenbru opened this issue Jan 8, 2025 · 7 comments
Open

[Bug]: Add to Google Calendar iOS #659

fenbru opened this issue Jan 8, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@fenbru
Copy link

fenbru commented Jan 8, 2025

What happened?

Clicking on the Add to Google Calendar opens an in-app browser logged out from the Google account, and not opening the Google Calendar app.

How to reproduce?

Initiate the Add to Calendar with Google -> in-app browser window is opened inside the app -> logged out from the Google Account forcing signing in process.

Google Calendar app is installed on the iPhone and logged in into the Google account.

Screenshots & more

System & Environment

  1. Device and OS: iPhone 13 iOS 18.2
  2. Browser:
  3. Version number of the application: 2.5.7
  4. How you include the script: import 'add-to-calendar-button-react';
@fenbru fenbru added the bug Something isn't working label Jan 8, 2025
@jekuer
Copy link
Collaborator

jekuer commented Jan 8, 2025

Hi @fenbru ,

Can you please share the full config for your button? Thanks.
There are some cases, where this would be the expected behavior as Google Cal on iPhone still has some (even new) flaws. Like with calendar subscriptions, that are currently not supported.

Best,
Jens

@fenbru
Copy link
Author

fenbru commented Jan 9, 2025

Hi @jekuer and thx for your reply.

This is my config:

const addToCalendarConfig: ATCBActionEventConfig = {
    name: event.title,
    description: event.description,
    startDate: dayjs.utc(event.start_date_time).local().format('YYYY-MM-DD'),
    startTime: dayjs.utc(event.start_date_time).local().format('HH:mm'),
    endDate: dayjs.utc(event.end_date_time).local().format('YYYY-MM-DD'),
    endTime: dayjs.utc(event.end_date_time).local().format('HH:mm'),
    location: event.place
      ? getPlaceAddress(event.place)
      : event.location
      ? event.location
      : `${event.latitude}, ${event.longitude}`,
    options: ['Google', 'Outlook.com', 'Apple', 'iCal'],
    hideCheckmark: true,
    timeZone: 'America/Los_Angeles',
  };

@fenbru
Copy link
Author

fenbru commented Jan 9, 2025

@jekuer any insights?

Is it related to the library version or the iOS version?

@jekuer
Copy link
Collaborator

jekuer commented Jan 9, 2025

@fenbru , I cannot really reproduce this with the last version.
So, I guess this is somehow related to using a somehow deprecated version of the script. Would you mind updating to the latest one?

@fenbru
Copy link
Author

fenbru commented Jan 13, 2025

HI @jekuer, still the same even after updating the script to -v 2.8.1.

@jekuer
Copy link
Collaborator

jekuer commented Jan 13, 2025

Since you are always talking about the "in-app browser" - are you building a website or app?
For apps, it can be tricky, starting with the fact that you are using the in-app-browser intead of the regular one.

@fenbru
Copy link
Author

fenbru commented Jan 13, 2025

It's an Expo app as a shell serving a web app built with React.

There were no issues using the library, but recently this came up.

And I guessed it was library or OS related, but seems the library version isn't affecting the aforementioned issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants