Native Plugins & Integrations1 min read
Calendar Plugin
Let users add events to their phone's calendar from your website, or by tapping .ics links, with the Calendar plugin for Android and iOS.
Overview
The Calendar plugin adds events to the phone's calendar. The user always confirms in the system screen; the app never adds events silently. Turn it on in Integrations › Native plugins and build a new version.
Without code: .ics links
With Open .ics links in the calendar on (the default), tapping a link to an .ics file (or a data:text/calendar link) opens the phone's own "new event" screen, filled in.
html
<a href="/events/launch.ics">Add to calendar</a>If the file has several events, the user is asked once, then sees each event in turn.
From your page
javascript
const result = await wapp.calendar.addEvent({
title: 'Webinar',
start: '2026-11-05T15:00:00Z', // ISO date or milliseconds
end: '2026-11-05T16:00:00Z', // optional: 1 hour later (or 1 day for allDay)
location: 'Online',
notes: 'Join with the link in your email',
alarms: [30], // minutes before
});
if (result.success) showAdded();
else if (result.code === 'CANCELLED') { /* the user closed the screen */ }Other options: allDay and url. wapp.calendar.importIcs({ url }) or importIcs({ text }) imports an .ics file from your page.
Permissions
- iPhone: asks only for permission to add events, not to read the calendar. Set the text in Calendar permission text (iOS).
- Android: needs no permission. Android does not report whether the event was saved, so the result is
action: 'done'.