🚀 DAY 4 OF LAUNCH WEEK: Introducing GitHub Actions Scanning Support.Learn more →
Socket
Book a DemoInstallSign in
Socket

@capgo/capacitor-alarm

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capgo/capacitor-alarm

Manage native alarm Capacitor plugin

latest
Source
npmnpm
Version
7.3.4
Version published
Weekly downloads
404
-33.55%
Maintainers
1
Weekly downloads
 
Created
Source

@capgo/capacitor-alarm

Capgo - Instant updates for capacitor

Manage native alarm Capacitor plugin

Install

npm install @capgo/capacitor-alarm
npx cap sync

Requirements

  • iOS: iOS 26+ only. This plugin relies on AlarmKit APIs and will report unsupported on earlier versions or when the framework is unavailable.
  • Android: Uses AlarmClock intents; behavior depends on the default Clock app and OEM policies.

Note: This plugin only exposes native alarm actions (create/open). It does not implement any custom in-app alarm scheduling/CRUD.

API

Capacitor Alarm Plugin interface for managing native OS alarms.

createAlarm(...)

createAlarm(options: NativeAlarmCreateOptions) => Promise<NativeActionResult>

Create a native OS alarm using the platform clock app. On Android this uses the Alarm Clock intent; on iOS this uses AlarmKit if available (iOS 16+).

ParamTypeDescription
optionsNativeAlarmCreateOptions- Options for creating the alarm

Returns: Promise<NativeActionResult>

Since: 1.0.0

openAlarms()

openAlarms() => Promise<NativeActionResult>

Open the platform's native alarm list UI, if available.

Returns: Promise<NativeActionResult>

Since: 1.0.0

getOSInfo()

getOSInfo() => Promise<OSInfo>

Get information about the OS and capabilities.

Returns: Promise<OSInfo>

Since: 1.0.0

requestPermissions(...)

requestPermissions(options?: { exactAlarm?: boolean | undefined; } | undefined) => Promise<PermissionResult>

Request relevant permissions for alarm usage on the platform. On Android, may route to settings for exact alarms.

ParamTypeDescription
options{ exactAlarm?: boolean; }- Optional parameters for the permission request

Returns: Promise<PermissionResult>

Since: 1.0.0

getPluginVersion()

getPluginVersion() => Promise<{ version: string; }>

Get the native Capacitor plugin version.

Returns: Promise<{ version: string; }>

Since: 1.0.0

Interfaces

NativeActionResult

Result of a native action.

PropTypeDescription
successbooleanWhether the action was successful
messagestringOptional message with additional information

NativeAlarmCreateOptions

Options for creating a native OS alarm via the platform clock app.

PropTypeDescription
hournumberHour of day in 24h format (0-23)
minutenumberMinute of hour (0-59)
labelstringOptional label for the alarm
skipUibooleanAndroid only: attempt to skip UI if possible
vibratebooleanAndroid only: set alarm to vibrate

OSInfo

Returned info about current OS and capabilities.

PropTypeDescription
platformstringPlatform identifier: 'ios' | 'android' | 'web'
versionstringOS version string
supportsNativeAlarmsbooleanWhether the platform exposes a native alarm app integration
supportsScheduledNotificationsbooleanWhether scheduling local notifications is supported
canScheduleExactAlarmsbooleanAndroid only: whether exact alarms are allowed

PermissionResult

Result of a permissions request.

PropTypeDescription
grantedbooleanOverall grant for requested scope
detailsRecord<string, boolean>Optional details by permission key

Type Aliases

Record

Construct a type with a set of properties K of type T

{ [P in K]: T; }

Keywords

capacitor

FAQs

Package last updated on 23 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts