PIT SMS and Call Logs
Use this Plugin to get SMS and Call Logs.
Note: This plugin is still under development, and some Components might not be available yet or still has so many bugs and this plugin just for android only.
pit_sms_call_log as a dependency in your pubspec.yaml file.
this plugin depends on other plugins, you must have a permission to use this plugin, you can use
pit_permission plugin or other permission plugin.
You must add this permission in AndroidManifest.xml for Android
for read sms = <uses-permission android:name="android.permission.READ_SMS"/> for read call logs = <uses-permission android:name="android.permission.READ_CALL_LOG"/>
Example for Get SMS
List<SmsLog> smsList = await PitSmsCallLog.getSmsLog(daysBefore: 3);
Example for Get Call Logs
List<CallLog> callLogs = await PitSmsCallLog.getCallLog(daysBefore: 20);
- Foreign Function Interface for interoperability with the C programming language. [...]
- HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
- Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.