flutter_sms_listener

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

flutter sms listener

flutter_sms_listener #
A plugin to listen incoming sms in Android. This package is an extracted SmsReceiver class from a full blown plugin called sms.
Main reason is original plugin is no longer maintained and therefore a null-safety version need to be made.
Credits to original author for providing the base code.
What this is and What this isn't about #
This plugin uses android's Telephony and prompts for user's permission to access messages.
This is NOT a plugin that depend on third party API such as Google SMS Retriever API which bypass permission. If you wish to use such an API, consider android_sms_retriever package.
Getting Started #
Adding package to project
dependencies:
flutter_sms_listener: ^0.1.3
copied to clipboard
Import
import 'package:flutter_sms_listener/flutter_sms_listener';
copied to clipboard
Usage #
void main() {
FlutterSmsListener smsListener = FlutterSmsListener();

smsListener.onSmsReceived((SmsMessage) {
// Do something with sms message
});
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.