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

lack of iOS 17 support #4643

Closed
1 of 3 tasks
mkocik opened this issue Sep 28, 2023 · 5 comments
Closed
1 of 3 tasks

lack of iOS 17 support #4643

mkocik opened this issue Sep 28, 2023 · 5 comments

Comments

@mkocik
Copy link

mkocik commented Sep 28, 2023

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

Current behavior:
After upgrading system to ios17 calendar plugin stopped working. It doesn't ask about permissions and it doesn't write any data to user's calendar.

Expected behavior:
In ios16 (and earlier) calendar plugin asks about write permissions & allows app to create new calendar instances / add them to user's system's calendar

Other information:
requestReadWritePermission returns empty error

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Ionic:

   Ionic CLI                     : 7.0.1 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.1.9
   @angular-devkit/build-angular : 13.2.6
   @angular-devkit/schematics    : 13.3.7
   @angular/cli                  : 13.2.6
   @ionic/angular-toolkit        : 6.1.0

Capacitor:

   Capacitor CLI      : 4.6.1
   @capacitor/android : 4.6.1
   @capacitor/core    : 4.6.1
   @capacitor/ios     : 4.6.1

Utility:

   cordova-res                          : not installed globally
   native-run (update available: 1.7.3) : 1.7.1

System:

   NodeJS : v16.20.0 (/usr/local/Cellar/node@16/16.20.0/bin/node)
   npm    : 8.19.4
   OS     : macOS 14.0 (23A344)
@matfantinel
Copy link

I'm also facing this. Seems like it's because of the changes in iOS 17 highlighted here.

I've tried adding NSCalendarsFullAccessUsageDescription to my Info.plist but that wasn't enough, as it seems the actual native functions to call have changed.

@gatelli
Copy link

gatelli commented Sep 29, 2023

+1, doesn't find any calendars also.

@matfantinel
Copy link

There is this open PR on the plugin's repo that claims to fix the issue: EddyVerbruggen/Calendar-PhoneGap-Plugin#566

Might be worth moving the discussion to the issue in that repo as well: EddyVerbruggen/Calendar-PhoneGap-Plugin#565

@mkocik
Copy link
Author

mkocik commented Sep 29, 2023

Yes I tested it initially and it works on iOS17. But not on the older versions 😞 I proposed a simple fix to keep the backward compatibility.

Once we have it merged and released in PhoneGap-Plugin, we will need to bump the version here and release it also.

In a meantime, for testing purposes, you can open the Pods/Development Pods/CordovaPlugins/CordovaPluginCalendar/Calendar.m in Xcode and just replace a content of initEventStoreWithCalendarCapabilities method with the one from this PR.

Copy link

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 Dec 6, 2023
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

3 participants