# @gyo-framework/phone-caller

> Gyo plugin for making phone calls via Android Intent

Latest version **0.1.2** (published 2026-05-12) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @gyo-framework/phone-caller
pnpm add @gyo-framework/phone-caller
yarn add @gyo-framework/phone-caller
bun add @gyo-framework/phone-caller
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2026-05-12 |
| First published | 2026-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 0 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gyo Framework |
| Maintainers | dev-hann |
| Keywords | gyo, phone-caller, telephony, android, bridge, plugin |

## Links

- npm: https://www.npmjs.com/package/@gyo-framework/phone-caller
- Repository: https://github.com/dev-hann/gyo
- Homepage: https://github.com/dev-hann/gyo#readme
- Issues: https://github.com/dev-hann/gyo/issues
- npm.io page: https://npm.io/package/@gyo-framework/phone-caller

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2026-05-12
- 0.1.1 — 2026-05-12
- 0.1.0 — 2026-05-11

## README

# @gyo-framework/phone-caller

Gyo plugin for making phone calls via Android Intent.

## Installation

```bash
npm install @gyo-framework/phone-caller
```

## Usage

```typescript
import { PhoneCaller } from '@gyo-framework/phone-caller';

const caller = new PhoneCaller();

// Make a phone call
const called = await caller.call({ phoneNumber: '01012345678' });

// Get call log
const { entries, count } = await caller.getCallLog({ limit: 10 });

// Check availability
if (caller.isAvailable()) {
  // running in WebView with native bridge
}

// Cleanup
caller.destroy();
```

## API

### `PhoneCaller`

| Method | Returns | Description |
|--------|---------|-------------|
| `call(params)` | `Promise<boolean>` | Make a phone call |
| `getCallLog(params)` | `Promise<CallLogResult>` | Get recent call log entries |
| `isAvailable()` | `boolean` | Check if native bridge is available |
| `destroy()` | `void` | Clean up resources |

### Types

```typescript
interface CallParams {
  phoneNumber: string;
}

interface GetCallLogParams {
  limit: number;
}

interface CallLogEntry {
  number: string;
  name: string;
  date: number;
  duration: number;
  type: string;
}

interface CallLogResult {
  entries: CallLogEntry[];
  count: number;
}
```

## Android Setup

Register the bridge handler in your `MainActivity.kt`:

```kotlin
import gyo.plugins.phone_caller.PhoneCallerBridge
import gyo.plugins.bridge.BridgeRegistry

// In onCreate():
BridgeRegistry.register("phone_caller", PhoneCallerBridge(this))
```

### Permissions

Add to `AndroidManifest.xml`:

```xml
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
```

## Peer Dependencies

- `@gyo-framework/bridge@^0.1.3`

## License

MIT

---
_Source: https://npm.io/package/@gyo-framework/phone-caller · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
