-
Notifications
You must be signed in to change notification settings - Fork 402
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
API MISUSE: nil event store in initialization of EKCalendar instance
for createEventInteractivelyWithOptions
#564
Comments
UpdateRequesting PermissionsI tried requesting permission with Calendar.requestReadWritePermission(), but it does not work, as can be seen in the Xcode log... Code try {
await Calendar.requestReadWritePermission()
} catch (e) {
console.log('Could not request permission')
} Log
"It runs on my device"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: |
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. |
I found this fork that works: This pull request changed less code but doesn't work on my project. |
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 <#570>
—
Reply to this email directly, view it on GitHub
<#564 (comment)>,
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 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.
The text was updated successfully, but these errors were encountered: