nativeScript-CallLog
为 NativeScript 移动应用程序提供通话记录历史。
npm i --save nativescript-CallLog

NativeScript 通话记录

NPM

限制

目前,它仅适用于 Android。

用法

callLogsService.getCallLog().then(callLogs => {
callLogs.data.forEach(callLog => {
console.log(`${callLog['number']} ${callLog['type']} ${callLog['date']} ${callLog['duration']}`);
})
});