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

Events created on Google calendar on iOS reflects only if I launch apple calendar first and then open the app #534

Open
Praveena0989 opened this issue Mar 25, 2024 · 4 comments
Labels
bug Something isn't working enhancement New feature or request iOS

Comments

@Praveena0989
Copy link

Describe the bug
Events created on Google calendar on iOS won't come in device calendar API response, and it will start coming once I open the apple calendar app and then open my app. Is this expected behavior?

@Praveena0989 Praveena0989 added the bug Something isn't working label Mar 25, 2024
@Praveena0989 Praveena0989 changed the title Events created on Google calendar on iOS reflects only if launch apple calendar and then open the app Events created on Google calendar on iOS reflects only if I launch apple calendar first and then open the app Mar 31, 2024
@lukemmtt
Copy link

lukemmtt commented Jun 28, 2024

To close the loop here, this is normal behavior for iOS devices, and is an OS nuance, not something specific to device_calendar or Flutter.

Specifically, Google Calendar does sync with the Apple Calendar automatically in the background (based on the user's refresh frequency in iOS Settings app > Calendar), but even with the most aggressive setting there, there are still some delays, and the only way to force a sync is to open the iOS Calendar app.

I hope that helps. This issue should now be closed.

@Praveena0989
Copy link
Author

I fixed it by calling refreshSourcesIfNecessary()

@lukemmtt
Copy link

Good to know, thanks for sharing!

@thomassth
Copy link
Contributor

This seems to be an important calendar related API to implement, even if it only concerns iOS.

Reference:
https://developer.apple.com/documentation/eventkit/ekeventstore/1507421-refreshsourcesifnecessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request iOS
Projects
None yet
Development

No branches or pull requests

3 participants