Orientação gerada a partir de informações públicas. Apenas para referência.
Reflex é um plugin Flutter que permite aos aplicativos lerem notificações recebidas e enviarem respostas personalizadas automaticamente. Projetado para Android e iOS, ele se integra aos serviços de notificação em nível do sistema para monitorar e responder a mensagens de forma programática. Ideal para chatbots, suporte automático ao cliente ou fluxos de trabalho inteligentes de mensagens, o Reflex permite que desenvolvedores criem aplicações responsivas que agem sobre notificações em tempo real. O plugin é de código aberto e mantido por devsonflutter, oferecendo integração simples por meio do pub.dev. Ele suporta ambos os plataformas, tornando-o adequado para melhorias em mensagens multiplataforma.
Casos de uso
Respostas automatizadas de chatbot
Tratamento inteligente de notificações
Automação de suporte ao cliente
Monitoramento de mensagens em tempo real
Aplicativos de mensagens multiplataforma
Principais recursos
Lê notificações recebidas
Respostas automáticas com mensagens personalizadas
Suporta Android e iOS
Open-source e comunitário
Integração simples por meio do pub.dev
Indicado para
Desenvolvedores de chatbots
Aplicativos que exigem respostas automatizadas
Ferramentas de mensagens e suporte
Sistemas de notificação multiplataforma
Projetos Flutter centrados em automação
Considerações
Requer permissão do usuário para acesso a notificações
Limitado à leitura de notificações do sistema
Pode não funcionar em todos os fabricantes de dispositivos
Depende da execução em segundo plano específica da plataforma
Casos de uso sensíveis à privacidade exigem transparência
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
The stream is subscribed for ReflexEvent whenever a notification is received.
Reflex Event
The incoming reflex event contains:
type: ReflexEventType.notification whenever a notification is received to flutter application, and ReflexEventType.reply whenever an automated reply is sent.
packageName: Application's package name from which notifications are received and reply are sent.
title: Notification title
message: Message contained in the notification and while sending reply.
timestamp: Timestamp of the notification received and reply sent.
Listen notification from specific apps
Specify list of package names to listen to notifications from those applications.
If packageNameList: null plugin will listen to notifications from all packages.
Send an automated reply while listening notification.
AutoReply autoReply = AutoReply(
message: "[Reflex] This is an automated reply.",
),
Auto reply specific apps
Specify packageNameList in AutoReply to reply to specific applications.
AutoReply autoReply = AutoReply(
packageNameList: ["com.whatsapp"],
message: "[Reflex] This is an automated reply.",
),
The AutoReply object is used by the Reflex's autoReply field to automatically reply to applications.
Reflex reflex = Reflex(
debug: true,
packageNameList: ["com.whatsapp", "com.tyup"],
packageNameExceptionList: ["com.miui.securitycenter"],
autoReply: AutoReply(
packageNameList: ["com.whatsapp"],
message: "[Reflex] This is an automated reply.",
),
);
If the autoReply field is null in Reflex class, Auto reply feature will be disabled.
Ambiguity
A ReflexException will be thrown if,
Reflex's packageNameList and packageNameExceptionList contains any similar package name.
any package name in AutoReply's packageNameList is contained in Reflex's packageNameExceptionList.
Project Created & Maintained By
Divyanshu Shekhar
Subham Praharaj
Contributions
Contributions are welcomed!
If you feel that a hook is missing, feel free to open a pull-request.
For a custom-hook to be merged, you will need to do the following:
Describe the use-case.
Open an issue explaining why we need this hook, how to use it, ...
This is important as a hook will not get merged if the hook doens't appeal to
a large number of people.
If your hook is rejected, don't worry! A rejection doesn't mean that it won't
be merged later in the future if more people shows an interest in it.
In the mean-time, feel free to publish your hook as a package on https://pub.dev.
A hook will not be merged unles fully tested, to avoid breaking it inadvertendly in the future.