-
Notifications
You must be signed in to change notification settings - Fork 45
feat: Google calendar sync #470
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
feat: Google calendar sync #470
Conversation
|
Thanks for the pull request, @PavloNetrebchuk! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
5032503 to
2c939c4
Compare
volodymyr-chekyrta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
7cbdfc6 to
2cbb408
Compare
2cbb408 to
0baa9e5
Compare
IvanStepanok
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix Google Calendar Integration
Problem
Calendar events were not appearing in Google Calendar. 441
Root Cause
The code was attempting to use
CALLER_IS_SYNCADAPTER=trueURI parameter, which is only available to actual sync adapters, not regular Android applications. This caused calendar and event operations to fail silently.Why Regular Apps Can't Use
CALLER_IS_SYNCADAPTERThe
CALLER_IS_SYNCADAPTERparameter is a security and permission mechanism in Android's Calendar Provider:Security Model: Sync adapters are system-level components that must be declared in
AndroidManifest.xmlwith specific permissions and metadata. They are granted elevated privileges to modify calendar data across accounts.Permission Requirements: To use
CALLER_IS_SYNCADAPTER, an app must:AccountAuthenticatorandroid.permission.WRITE_SYNC_SETTINGSpermissionRegular App Limitations: Regular applications (like our OpenEdX app) cannot:
What Happens When Used Incorrectly: When a regular app tries to use
CALLER_IS_SYNCADAPTER=true:Solution
1. Fixed Calendar Creation
CalendarContract.Calendars.CONTENT_URIinstead of sync adapter URI2. Fixed Event Operations
CalendarContract.Events.CONTENT_URI3. Fixed Calendar Deletion
ContentUris.withAppendedId()for URI constructionLimitation⚠️
Because the application lacks permissions to create calendars and can only insert events into the user’s default calendar, it is not possible to customize calendar properties such as name or color.
Creating google calendar:
Screen.Recording.2025-12-05.at.13.56.40.mov
Creating local calendar:
Screen.Recording.2025-12-15.at.15.30.07.mov