In the release announcment for SDK 34 the following is listed under breaking changes:
"Calendar
: the DEFAULT
constant has been removed. To use the default calendar, pass null
instead. This fixes an occasional issue when the calendar name coincides with a SQLite keyword."
I’m trying to adjust my code to accomidate the changes, but I keep getting an error:
createEventAsync must be called with an id (string) of the target calendar
The way I’ve been replacing the code was from…
Calendar.createEventAsync(Calendar.DEFAULT, {//details in here...})
…to…
Calendar.createEventAsync(null, {//details in here...})
Is this what I’m supposed to change it to or am I missing something?