react-native-calendar-events icon indicating copy to clipboard operation
react-native-calendar-events copied to clipboard

saveCalendar doesnt appear in google calendar

Open Shup04 opened this issue 7 months ago • 3 comments

when i call saveCalendar, it gets added and i can fetch it with fetchCalendars, i can add events to it and it works well. The calendar/events never show up in google calendar or any other app, despite it being synced. This calendar also gets deleted after some inactivity so when i go back to the app i have to remake all the events and calendar. Adding events to an existing calendar works fine.

Environment

using expo so 'react-native info' doesn't exist

Steps to Reproduce

  1. check/get calendar perms
  2. create calendar:

`const source = { name: '[email protected]', type: 'com.google', isLocalAccount: false, }

  if (!googleCalendar) {
    // Create a new calendar
    console.log("creating calendar...")
    const id = await RNCalendarEvents.saveCalendar({
      title: 'AquaFlora Reminders',
      color: 'blue',
      entityType: 'event',
      name: 'aquaflora',
      accessLevel: 'owner',
      ownerAccount: '[email protected]',
      source,
    });`
  1. sync google calendar
  2. nothing shows up

Expected Behavior

i expect the calendar i create to appear in google calendars and not to get deleted after a while

Actual Behavior

self explanatory

Shup04 avatar Jul 16 '24 04:07 Shup04