How Get Call Log History Using Cordova CallLog Plugin For Android
Solution 1:
I'm not trying to solve all your problem, just want to throw some light. Your Java seems fine, but check https://wiki.apache.org/cordova/DeprecationPolicy and see the solution offered for such deprecation code on the next url link. for your Javascript.
deprecation: window.addPlugin and window.plugins will be removed
http://simonmacdonald.blogspot.com.es/2012/08/so-you-wanna-write-phonegap-200-android.html
Your Code: window.plugins.calllog = new CallLog(); return window.plugins.calllog;
The solution provided is something like:
module.exports = new CallLog();
Solution 2:
Here is a plugin I have made
https://www.npmjs.com/package/callsplugin
you basically have to write the command
cordova plugin add callsplugin
and follow the instruction you find in the project site
since retrieving calls is not a quick task I have used Thread Pool to avoid blocking the application. You can find the whole code here https://github.com/asindico/callsplugin
Post a Comment for "How Get Call Log History Using Cordova CallLog Plugin For Android"