Open KaiserRuben opened 1 year ago
I tried requesting permission with Calendar.requestReadWritePermission(), but it does not work, as can be seen in the Xcode log...
try {
await Calendar.requestReadWritePermission()
} catch (e) {
console.log('Could not request permission')
}
⚡️ [log] - Could not request permission
Cause it actually does work on some iPhones, I did some further testing: Turns out, on iOS 15.5, the Code works. Seems like Apple changed their APIs somewhere in-between iOS 15.5 and iOS 16.
I think this has something to do with API changes for iOS 17: https://developer.apple.com/documentation/technotes/tn3153-adopting-api-changes-for-eventkit-in-ios-macos-and-watchos
I confirm the issue due to the use of XCode 15. Using XCode 14 seems not to reproduce the issue.
Hello
so what is solution to fix it ?
Thank you for help
By now I got back to XCode 14 to get some extra time, until April.
I'm trying to use the native ICS file import, without success by now. https://www.reddit.com/r/PWA/comments/gqc3g4/add_to_calendar_on_pwa/
Hello
so what is solution to fix it ?
Thank you for help
I found this fork that works: https://github.com/digistorm/Calendar-PhoneGap-Plugin
This pull request changed less code but doesn't work on my project. https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin/pull/570
ok but how to install it for capacitor ?
possible to share command for it
Thank you
On Wed, Feb 28, 2024 at 8:09 PM VittorioCineca @.***> wrote:
Hello
so what is solution to fix it ?
Thank you for help
I found this fork that works: https://github.com/digistorm/Calendar-PhoneGap-Plugin
This pull request changed less code but doesn't work on my project.
570 https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin/pull/570
— Reply to this email directly, view it on GitHub https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin/issues/564#issuecomment-1969128669, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLK3BS6GZNYKKDWWWGXZHDYV46TBAVCNFSM6AAAAAA2YQRWV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRZGEZDQNRWHE . You are receiving this because you commented.Message ID: @.***>
hello
does anyone have solution to make it working,
our app stop working for ios totally as it not adding calendar event
Thank you
@ipehimanshu I've packed a plugin with the fix. https://www.npmjs.com/package/cordova-plugin-calendar-ios-fix
It should work also on Capacitor due to the fact it has a real small difference with the original plugin but I haven't tested.
Description
For some reason, it seems like I don't have access to the Calendar on iOS. I added 'Privacy - Calendars Usage Description' to Info.plist, so this shouldn't be it.
Android works fine.
Version
iOS 17 Xcode 15.0 beta 3 package.json (excerpt):
I have the same behaviour for iOS 16 and Xcode 14 as well.
Logs
Xcode Log:
Code
I have a function called getCalendar which gets the calendar for me, and, if it does not exist yet, creates it. For testing I added
Calendar.hasReadWritePermission()
, which should always be true on iOS, but it is not...? This can be seen in the Xcode log.JavaScript:
Thanks for your help
I'd be thankful for any hints on what I missed.