Need help upgrading to Ionic Framework 4.0? Get assistance with our Enterprise Migration Services EXPLORE NOW

Call Log

Improve this doc

This plugin access the call history on a device and that can be filtered

Repo: https://github.com/creacore-team/cordova-plugin-calllog

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-plugin-calllog
    $ npm install --save @ionic-native/call-log@4
    
  2. Add this plugin to your app's module

Supported platforms

Usage

import { CallLog } from '@ionic-native/call-log';


constructor(private callLog: CallLog) { }

`

Instance Members

getCallLog(filters)

This function return the call logs

Param Type Details
filters CallLogObject[]

array of object to filter the query

Returns: Promise<any>

hasReadPermission()

Platforms:Android 

Check permission

Returns: Promise<any>

requestReadPermission()

Platforms:Android 

Request permission

Returns: Promise<any>

CallLogObject

Param Type Details
name string
value string | string[]
operator '==' | '!=' | '>' | '>=' | '<' | '<=' | 'like'

API

Native

General