FLUTTER ECOSYSTEM

Ayush783/readsms_plugin

Plugin Flutter para leitura de SMS no Android.

Capa do projeto readsms_plugin
Stars
8
Forks
21
Último push (UTC)
8 de set. de 2024
Status do projeto
Ativo
Aayush sharma GitHub avatar
GITHUB User

Aayush sharma ↗

SDE @ India Today Group | Flutter Developer

India Today GroupDelhi NCRSite oficial ↗
LinguagensDartKotlinRubyObjective-C

Tópicos técnicos

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • flutter_lintsDesenvolvimento^2.0.0

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

readsms

This is a plugin made for flutter to read incoming sms on the device as a broadcast stream.

Following steps describe how to use the plugin ReadSms :-

  • Ask the user for Sms permission. You can do this using Permission handler package.
  • Create an instance of ReadSms.
  final plugin = ReadSms();
  • Call the read method on the plugin object;
  plugin.read();
  • Access the stream of SMS exposed by the plugin object and get the incoming SMS.
  plugin.smsStream.listen((sms){
    print(sms.body);
    print(sms.sender);
    print(sms.timeReceived);
  });

That's all you need to do.