import { LocalNotifications } from '@capacitor/local-notifications'; LocalNotifications.schedule({ notifications: [ { title: "On sale", body: "Widgets are 10% off. Act fast!", id: 1, schedule: { at: new Date(Date.now() + 1000 * 5) }, sound: null, attachments: null, actionTypeId: "", extra: null } ] });import { Geolocation } from '@capacitor/geolocation'; // get the users current position const pos
![Capacitor: Webアプリをクロスプラットフォームに展開](https://cdn-ak-scissors.b.st-hatena.com/image/square/333e9c44015043f5fb0854d86e4afc3410284fec/height=288;version=1;width=512/https%3A%2F%2Fcapacitorjs.com%2Fassets%2Fimg%2Fog.png)