Calendar API Breaks

Please provide the following:

  1. SDK Version: 35
  2. Platforms(Android/iOS/web/all): Android/iOS

I recently updated from SDK ~31 to 33 and noticed that it broke some of my Calendar functionality. I tried updating all the way to 35 in hopes that it would fix it, but it did not. Certain Calendar APIs are working, those based around Calendars work fine, getCalendarsAsync, createCalendarAsync ie. However, when I try to add events or get events from calendars, the app silently fails and Sentry returns a crash that is too long to log, but ends with “)`: -[__NSDictionaryM length]: unrecognized selector sent to instance 0x2821563a0”

Here are the relevant portions of code:

import * as Calendar from ‘expo-calendar’
import * as Permissions from ‘expo-permissions’

const calendarIds = [calID];
const startDate = moment(this.props.navigation.state.params.passedData.item.start_date).subtract(1, ‘day’);
const endDate = moment(this.props.navigation.state.params.passedData.item.end_date).add(1, ‘day’);
let eventIDs = await Calendar.getEventsAsync(calendarIds, startDate, endDate);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.