Flutter package for sending bulk sms without launching sms app - flutter

In my application, there gonna be about 400 users and we need to send them an sms notification. And I'm searching for suitable package, I asked almost same question about a month ago.
I was suggested sms package, but it doesn't support iOS. So I tried to look for other options, and I go through these packages:
sms_maintained (I guess it is the same package, but updated and maintained by different author)
Issues with this package:
Does not support <21 SDK version
Does not find option to send bulk SMS (looping the recipients is an option but maybe resource extensive and also difficult to keep track of failed sms)
It supports a lot of options and prompt for phone call permissions, I just need permission to send sms; even don't need to read sms so most of it's feature are unnecessary in my project
flutter_sms This package is almost according to my needs because it is clean and only performs one function which I need. But it doesn't work in the background, it launches sms app.
Q. Does anyone knows any solution/package for this?

Related

Firebase Messaging in flutter sendMessage()

I am a flutter programmer and I use in my projects when it comes to pushing notifications Firebase cloud messaging using node.js
I just discovered that there is a method called sendMessage in the firebase_Messaging package in flutter but I looked every where for documentation and I tried everything to find out how it works but got nothing.
That's all what the package offers as information:
so if anyone used it before or can help me to understand it I would really appreciate it <3
Unfortunately this method does not do what you might think it does: it is not for sending messages from one device directly to another device through FCM, but rather an alternative protocol that is infrequently used these days (afaik).
The FlutterFire documentation describes the sendMessage method as:
Send a new RemoteMessage to the FCM server. Android only.
Unfortunately that is missing a few crucial details, so I recommend also checking out the Android documentation on the Firebase site, where this is covered under sending upstream messages, which starts with:
If your app server implements the XMPP Connection Server protocol, it can receive upstream messages from a user's device to the cloud.
Still a bit vague, but keep reading it also mentions:
Receive XMPP messages on the app server
When FCM receives an upstream messaging call from a client app, it generates the necessary XMPP stanza for sending the upstream message. FCM adds the category and from fields, and then sends a stanza like the following to the app server:
The key here is the mention of an app server. As many places explain: there is no way to directly send messages from one device to another, as doing so would allow any user to send any message they want to any other user, which is a security risk.
The sendMessage method you found allows you to send a message to the FCM infrastructure, which then forwards it to your app server. It isn't much used anymore these days, as tools like Cloud Functions offer (at least equivalent and probably better) scalability with better flexibility.

Receive mails with Flutter

I want to create an app with Flutter for which it is necessary to receive (and send) mails. Clients share information with eachother in a decentral way using i.e. Googlemail without using an own server.
During my research I found several ways to send mails but no way to receive them since this seems to be not implemented yet in any package.
Flutter offers the option to use platform-specific code with platform channels (flutter plattform-channels) which might be a solution.
However I haven't tested this yet because I write the app for both iOS and Android which means that I'd have to do this for each java and Swift/Objective C.
Maybe someone here knows a better solution.

Who knows what method uses Mail.ru to download emails instantly

Im working in an android email app using java and I download emails connecting with imap. I noticed my app takes a while to download emails in all providers, I tried some apps in the play store to find out if it was just me, but no, a lot of apps download emails same way I do, it takes a while. Until I found an interesting app, Mail.ru ( https://play.google.com/store/apps/details?id=ru.mail.mailapp&hl=en ). This app download emails instantly, like hell!, there is no way they can download emails that fast, I tried a few email providers, Gmail, Outlook, Yahoo, AOL, Mail.com, Yandex, I even tried my own email domain and with all of them is the same, they download all emails instantly, you don't even notice.
I don't know, I wanted to ask because maybe someone have any idea what method they use to download that fast, I would really appreciate any tip, recomendation to improve the download speed of my app with all providers. Best Regards
There are three ways: They can start earlier, finish later or download less. Starting earlier means to issue the IMAP command before the user does, for example by noticing that the user always reads mail in the morning and so downloading everything in the background at six. Finishing later means to display something as soon as you have a first message ready, and continuing the download in the background. By the time the user is done with the first five messages you'll have had time to download at least fifty. Downloading less is to download only part of the message, as Max suggests, and complementing it later if necessary.

Messaging service within my app

I need to implement a message service into my app that works exactly like this:
users register with a nickname within the app
they can add contacts (just nicknames) and send them a message by just specifying their nickname
they can send a message whenever they want, and the message is stored on a server until when the receiver connects to internet.
when a message is received, a push notification is triggered.
So, the messages work pretty much like emails, however instead of using email addresses, we only use usernames. I'm also going to build my own back-end for it.
Which APIs should I use or which 3rd party framework can I use ?
And any tip ?
N.B. I need to make it work with iOS 3.0 as well.
and in the future I will develop an Android app, so the nicknames should be unique and I should be able to send messages from iPhone to Android devices within the same app.
thanks
I've successfully used the Three20 library and would recommend giving it a try. It's an open source spin-off originated by the author of the Facebook app. It features a bunch of additional GUI components that might be useful to your project, like a message composer that resembles the one used by Apple's email app.
Also, Three20 features a nice framework for handling navigation within your app. Currently, the biggest drawback seems to be that certain features don't play well with the iPad API.
The answer seems to be Push Notifications

Get content of SMS and email in iPhone?

I'm trying to implement an app that can read received SMS and email out. I mean convert the text content to voice. So I need to access to SMS and email first. As far as I know, there is no such API provided in the default SDK. Is there any other way to realize it?
Are the SMS messages stored in database(sms.db)? How to access to them? Is it only possible on jailbroken iphones?
And what about emails? Are they only stored in mail servers? How can I get them in my app?
Sorry for asking so many questions. I have spent many days on this problem, but havn't found any solutions...
You can't. According to the Device Features Programming Guide: Sending an SMS Message:
In iPhone OS 4.0 and later, you can send text messages from within your application. This feature is strictly for sending messages. Incoming SMS messages go to the built-in Messages app.
There are serious privacy and security concerns with enabling app access to emails and SMS, and I am glad Apple choose not to do it.
Yes, you can, (at least with SMS) but only in a jailbreak app (which you suggest is ok in your comments).
The sms.db file can be read by apps that aren't sandboxed.
See my answer to a similar question for how to get SMS content. That answer just shows how to get the most recent SMS, but if you just use the commented out while loop, you can iterate through all SMS.