Skip to content
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

Calendar and Reminder Permission #11684

Closed
shima93 opened this issue Jan 19, 2021 · 3 comments · Fixed by #11707
Closed

Calendar and Reminder Permission #11684

shima93 opened this issue Jan 19, 2021 · 3 comments · Fixed by #11707
Assignees

Comments

@shima93
Copy link

shima93 commented Jan 19, 2021

I am trying to use Expo-calendar in my project. I want to use the "Calendar.createEventAsync(calendarId, details)" which is working fine. However, my concern is about the Reminder-permission.
I use "Calendar.getDefaultCalendarAsync()" for getting the default calendar id and the I use "Calendar.createEventAsync()" method to just create an event in Calendar. I don't want to use Reminder, why do I need reminder permission(for ios)?
is there any way that I can just ask for calendar permission for creating an event?

@brentvatne
Copy link
Member

brentvatne commented Jan 20, 2021

@lukmccall / @tsapeta - this appears to be related to #7928

if you run https://snack.expo.io/@notbrent/basic-calendar-usage on ios you will see "REMINDERS permission is required to do this operation." in logs (this is a slightly modified version of the example from the docs).


@shima93 - until we get more clarity on this, i'd recommend requesting reminder permissions using this method.

@lukmccall
Copy link
Contributor

I'm a little bit confused about this issue.

I've created a demo that should explain everything ;)
https://snack.expo.io/@lukaszkosmaty/https:-github.com-expo-expo-issues-11684---demo

The one certain thing is that we have a bug in our documentation - to get all calendars you need to have all permissions or pass entity type to Calendar.getDefaultCalendarAsync.

On the screenshots, you can see, that I've managed to create a new calendar and event without reminders permission.
image
image
image

@shima93
Copy link
Author

shima93 commented Jan 20, 2021

It helped. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants