Flutter:在无需用户在Android上进行交互的情况下发送批量短信的更好方法 [英] Flutter: Better approach for sending bulk SMS without user interaction on Android

查看:97
本文介绍了Flutter:在无需用户在Android上进行交互的情况下发送批量短信的更好方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的项目中,我们需要将批量SMS发送到我们的整个客户列表(列表中大约有200个用户),以获取每月的会费.

In our project, we need to send bulk SMS to our entire customer list (around 200 users in the list), for their monthly dues.

我们将:

  1. 向所有用户发送第一条短信

  1. send first sms to all users

第二条短信给待付款用户

second sms to pending payment users

向剩余用户发送第三条消息

final third message to remaining users

我们不能将SMS Gateway与API一起使用,因为在使用该应用程序的地区互联网不可靠,因此我们希望将SIM卡用于SMS.

We can't use SMS Gateway with API, because the internet is not reliable in the area where this app will be used so we wanted to use SIM for the SMS.

问题:

  1. 如何在没有用户交互的情况下发送短信?
  2. 我们如何提示您选择SIM卡? (双SIM卡手机)
  3. Futureasync一起使用是否是发送大容量SMS的好方法,还是有其他替代方法?
  1. How can we send SMS without user interaction?
  2. How we can prompt for SIM selection? (dual sim mobile)
  3. Does using Future with async is good approach for sending BULK SMS OR is there any alternative available?

推荐答案

首先,您应该获得SMS的运行时权限

First of all you should take runtime permission for SMS

答案:

  1. 然后您可以使用此库发送短信 SMS库.

  1. Then you can use this library to send sms SMS LIBRARY.

您还可以在此库中的双SIM卡之间进行选择.

You can also choose between dual sim in this library.

借助此基于SMS的库的传递,您可以处理大量SMS.

With help of this library based on sms is delivered or not you can handle BULK SMS.

这篇关于Flutter:在无需用户在Android上进行交互的情况下发送批量短信的更好方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆