Access the Mobile Device Calendar

Create a calendar import feature to manage events from one location, use preferred calendar apps, and save time from manually maintaining events or meetings in separate calendars.

Note
Note Using the CalendarService API to create contact-based features works only in the mobile app, and not on mobile or desktop web.

You can develop and implement a Lightning web component with a calendar import feature using the CalendarService API. A calendar import feature requires the use of the mobile device calendar. The user must grant your app access to the calendar.

  1. Import CalendarService into your component definition.
  2. Test to make sure CalendarService is available before you call calendar-related functions.
  3. Use the getCalendar()

For complete details, see Use Mobile Device Features in Mobile Apps in the Lightning Web Components Developer Guide.