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

@awesome-cordova-plugins/calendar - calendar access has changed in iOS 17 #4656

Closed
1 of 3 tasks
pkings opened this issue Nov 3, 2023 · 3 comments
Closed
1 of 3 tasks

Comments

@pkings
Copy link

pkings commented Nov 3, 2023

I'm submitting a ... (check one with "x")

Current behavior:

In iOS 17, the api for requesting calendar access has changed: https://developer.apple.com/documentation/technotes/tn3152-migrating-to-the-latest-calendar-access-levels

"Replace the deprecated request methods. The iOS, macOS, and watchOS SDKs bundled in Xcode 15 deprecate the requestAccess(to:completion:) and requestAccess(to:) methods. If your app links against the iOS 17 SDK, macOS 14 SDK, or watchOS 10 SDK, calling these deprecated request methods doesn’t prompt the user for access and throws an error message. Remove these methods from your app. Use the new APIs to prompt the user for access in your app:"

As indicated in the quote above, the user prompt for asking for calendar access does not show up anymore.

Expected behavior:
In iOS Versions below 17, requesting the calendar access worked using requestReadPermission(): Promise<any>. It should also work in iOS 17.

Steps to reproduce:
Try to request calendar access using requestReadPermission(): Promise<any> of import {Calendar} from "@awesome-cordova-plugins/calendar/ngx";

Thanks! :-)

@mdivya-symplr
Copy link

mdivya-symplr commented Dec 7, 2023

Any update regarding this. This is a blocker as we are no longer seeing/receiving calendar permission for the app.
@pkings Have you found any alternative for this?
I see this is related to - EddyVerbruggen/Calendar-PhoneGap-Plugin#565
Looks like even cordova-plugin-calendar needs to address this yet

Thanks.

@mdivya-symplr
Copy link

mdivya-symplr commented Dec 7, 2023

@pkings For me, I'm on capacitor. Adding NSCalendarsFullAccessUsageDescription to Info.plist has worked. After this I'm receiving calendar permissions.
EddyVerbruggen/Calendar-PhoneGap-Plugin#565 (comment)

UPDATE
Above fix worked only for 14.2 latest beta 3 version but not for lower again!! :(

Copy link

github-actions bot commented Feb 6, 2024

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants