NativeScript Call Log
Limitations
Currently, it only works on Android.
Usage
- args.filter[] - Types of calls that we want to get. If you send all three types it's the same as leaving it empty (all calls are returned by default).
- args.contactType - You can return only calls which are (callLogsService.ContactType.KNOWN)/are not (callLogsService.ContactType.UNKNOWN) in your contact list.
let args = filter: callLogsServiceTypeINCOMING callLogsServiceTypeOUTCOMING callLogsServiceTypeMISSED contactType: callLogsServiceContactTypeUNKNOWN; callLogsService;
Returned fields
- number
- type (callLogsService.Type.INCOMING, callLogsService.Type.OUTCOMING, callLogsService.Type.MISSED)
- date (timestamp)
- duration (in seconds)
- contactid (0 for not saved number)