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

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.

Related

Flutter package for sending bulk sms without launching sms app

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?

How to pause/resume downloads in iPhone (iOS)

I have to download large amount of data (anywhere between 300MB - 1GB).
I am currently using **NSURLConnection**to download the data. But, now i am looking at a scenario where the user might loose the internet connection during the download process. Currently i am restarting the entire download process in this scenario, which i think is a very bad way of downloading and a waste of user bandwidth.
Is there a process in which i can manage the downloads with Pause/Resume functionality while downloading.
Here's a tutorial of how to do this on IOS.
Also check documentation. This will require your server to support range headers.
this needs synchronization both at server as well as client side. and i allready told u to use chunks. definetely chunks is the only solution if you want to pause. you will send the server with a chunk id to stop till this i'll get remaing next and next time you will ask from that id.
FIXED SOLUTION :
Fixed broken link and here is the working Tutorial to resume FIle Download file in iOS.
You can use "NSURLSession to pause and resume

Plug In To Other Applications (iPhone SDK)

I'm pretty sure that due to the Application Sandbox, none of this is possible, but...
I am working on an application that operates on text that the user inputs. Aside from forcing the user to copy and paste from another application or type in text, what other options exist for getting text? To be more specific:
Is there any way to get the user to "pass" an email to my app? I can imagine a hacky solution where I have the user mail it to a server on the Net, and then I expose the mail from a server-side application, but I'd like something a bit more direct.
Is there any way to get to the user's mail inbox without asking them to put in their credentials?
Is there any way to plug-in to Safari, so that I can send web pages "over" to the app? I don't mean a full plugin, which I know is impossible.
I'm trying to think of creative ways to solve this problem of how to get text into my app, so any ideas would help.
From the Iphone SDK Forum: "Apps can't read each others files - but you could use a URL scheme to launch one app from another. Any parameters in the URL would be passed."
It's what my gut was telling me, but i wanted to go verify before saying..officially, no. The Sandbox isolates each program..
You can pass via URL text strings, but that's about it. I haven't seen any app which hacks around this limitation, but that just may be none of them surviving the app submission process.
http://www.iphonedevsdk.com/forum/iphone-sdk-development/21099-sharing-data-between-applications.html

Scheduling iPhone application execution

I'm writing an iPhone app for a client, and they have requested a feature whereby the app "wakes up" at certain times during the day to display a message to the user.
I'm well aware that I can't have the application run in the background and simply move to the foreground at the appropriate time (short of requiring jailbreaking, which isn't really an option for a commercial app). What I'd ideally like would be to simply have the system schedule the application to be run at a particular time of day.
As far as I can tell, the only way to achieve this seems to be to implement push notifications and have a server send the app a message at the appropriate time of day. But this is really ugly and undesirable for several reasons:
It requires a constant internet connection on the user's phone (something that I can't really assume)
It places a large burden on the server in having to keep track of these times (which may be different for each user)
Its just a generally crappy workaround - that's not what push messages are designed for, a dedicated scheduler seems like a much better option.
Does anyone know of a better alternative?
Currently, this is the only option. File a bug with Apple requesting 'local notifications' (a term I've heard their engineers use in relation to this problem.) Ideally, they would work just as push notifications work now, but not require any net connection. Sorry!
Now you can use local notification instead of push notification. Available in iOS 4.0.

iPhone gui message from perl/shell-script possible?

I want to write a perlscript on my iPhone that is able to give me a heads up at certain points so I'm wondering how I would go about doing that.
Is there a way to get a message through the gui from a script running in the background? I've been looking without much luck. I had a thought about inserting a fake sms into the sqlite db as a last resort but it seems somewhat unlikely that it would work.
It would be nice to be able to make a push notification style popup appear but that might too much to ask.
Any ideas?
For reasons of security and stability, Apple does not allow scripting languages on the iPhone. You can run them on a jailbroken phone but I'm given to understand it's a hassle.
From the Apple Push Notification Programming Guide:
Note: On a desktop system, a
background process is often the means
whereby users are informed of
downloadable data for an application
that currently isn’t running. But on a
device such as the iPhone, background
applications are, for performance and
security reasons, prohibited. Only one
application may be executing at a
time.
The iPhone is a secure and reliable phone first and a computer second. Computing is sacrificed to ensure a reliable phone.
I found a solution I liked so I decided to share it. I found an app for jailbroken iPhones called GriP - Growl for iPhone. Which changes the way push notifications and other messages are handled. It also makes it possible to send messages from the command line via something along the lines of:
/usr/bin/GriP -t "Title" -d "Description"
It has worked great so far.
Thank you for your help TechZen and molecules.
Do you want information from your phone itself or from an outside source? If you want information from an outside source, you could set up a Perl script on a computer to e-mail yourself notifications (see Sending Email with Perl Best Practice).