Call Log
This plugin access the call history on a device and that can be filtered
Repo: https://github.com/creacore-team/cordova-plugin-calllog
Installation
- Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-calllog $ npm install --save @ionic-native/call-log@4
- Add this plugin to your app's module
Supported platforms
- Android
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'
|