Skip to content

Not able to save events to calendar in Android 13 #438

@anshdroid

Description

@anshdroid

Using react-native-calendar-events latest version, Events are saved up to Android 12 and work well with iOS. But the same thing fails with Android 13.

Got success while writing events with event id but not visible in the default Calendar.

Environment

React Native: 0.66.3
React: 17.0.2
react-native-calendar-events: 2.2.0

Steps to Reproduce

import RNCalendarEvents from "react-native-calendar-events";

Request for permission

      RNCalendarEvents.requestPermissions(true).then(req => {
        // permission granted
      });

When permission is authorized

RNCalendarEvents.saveEvent(title,calParam, {})
    .then(value => {
// this block is executed when for success
    })
    .catch(error => {
 //error
    });

Even though checked for permissions too when saving events to the calendar, it says authorized for both Read and Write.

Run this in Android 13

Actual Behavior

error: you don't have permissions to add an event to the users calendar

Getting this error when saving the events to it.

Even tried with the calendar id to which modifications are allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions