-
Notifications
You must be signed in to change notification settings - Fork 295
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
Not able to save events to calendar in Android 13 #438
Comments
Got to fix this issue. In Android 13, it is seen that the end date must be one day after the start date. Therefore, the start and end dates cannot be the same. But still getting this error in real device Error: you don't have permissions to add an event to the users calendar |
Is this fixef? Any ideas how to fix this? |
Yes, Got to fix the issue somehow. While asking for permission set the readOnly flag to false
Add calendar id to the "RNCalendarEvents.saveEvent" along with the title
If you are checking with the permission granted or not check with readOnly flag as true
Hope it helps! |
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
Request for permission
When permission is authorized
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
Getting this error when saving the events to it.
Even tried with the calendar id to which modifications are allowed.
The text was updated successfully, but these errors were encountered: