Build on the supported package contract
Use @absolutejs/devices-capacitor through its supported public entry points.
@absolutejs/devices-capacitorv0.8.0betaNative AppsCapacitor runtime adapter for @absolutejs/devices
bun add @absolutejs/devices-capacitorCapacitor implementations for the provider-neutral @absolutejs/devices contracts. AbsoluteJS installs this adapter in the generated mobile shell; application code continues to import from @absolutejs/devices.
The release-candidate adapter covers:
app metadata and native platform identity;
app state, native resume, and Android restored-operation delivery;
launch URLs, inbound links, and audited HTTP(S) external browser opening;
native network status and change events;
Android hardware-back events with an explicit capability check; and
namespaced ordinary preferences that never clear another package's keys; and
an Absolute-owned native credential vault backed by iOS Keychain and Android
Keystore AES-256-GCM encryption; plus
opt-in Clipboard, Share, Haptics, Camera, and scoped photo-picker provider
slices; and
opt-in foreground Geolocation with approximate/precise permission reporting,
Outcomes
Use @absolutejs/devices-capacitor through its supported public entry points.
Hardening checklist
Follow in order
# @absolutejs/devices-capacitor
import { installCapacitorDeviceAdapterIfNative } from "@absolutejs/devices-capacitor";
const remove = installCapacitorDeviceAdapterIfNative();# @absolutejs/devices-capacitor
import { createCapacitorClipboardCapability } from "@absolutejs/devices-capacitor/clipboard";
import {
createCapacitorCameraCapability,
createCapacitorPhotosCapability,
} from "@absolutejs/devices-capacitor/camera";
import { createCapacitorHapticsCapability } from "@absolutejs/devices-capacitor/haptics";
import { createCapacitorKeyboardCapability } from "@absolutejs/devices-capacitor/keyboard";
import { createCapacitorLocationCapability } from "@absolutejs/devices-capacitor/location";
import { createCapacitorLocalNotificationsCapability } from "@absolutejs/devices-capacitor/local-notifications";
import { createCapacitorPushNotificationsCapability } from "@absolutejs/devices-capacitor/push-notifications";
import { createCapacitorDocumentsCapability } from "@absolutejs/devices-capacitor/documents";
import { createCapacitorShareCapability } from "@absolutejs/devices-capacitor/share";
import { createCapacitorSystemBarsCapability } from "@absolutejs/devices-capacitor/system-bars";Supported entry points declared by this package manifest.
Package entry point declared in package.json.
Scripts declared by this package manifest.
Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.