cordova-plugin-call-log2
Cordova plugin to access the call history on a device.
Platforms
- Android.
- iOS (TODO)
Installation
cordova plugins add cordova-plugin-call-log2
Usage
Listing all the call logs
// days is how many days back to goconst days = 7; cordovapluginscallLog;
Here the response.rows
will be something like:
date: 1590644153980 number: "9876543210" type: 2 duration: 16 new: 1 cachedNumberType: 0 cachedNumberLabel: 0
Where type
is-
- 1 === Incoming Call
- 2 === Outgoing Call
- 3 === Missed Call
- 4 === Unknown
Contact a phone number
cordovapluginscallLog;
Show a phone number
cordovapluginscallLog;
Delete a call log
cordovapluginscallLog;