Flutter : timestamp of incoming SMS is wrong using telephony package - flutter

I am developing a SMS app in flutter using telephony package. In this app, app is listening an incoming messages and doing some processing on it. After processing, I want to store some unique identifier for this particular SMS in local database so that when I have to display this message to user with processed result, I can use this ID from local database and filter SMS from Inbox. I tried following few logic but it did not work :
1- smsID from Inbox to local DB but it is not reliable as if particular message is deleted from inbox, new incoming sms get same smsID as deleted one.
2- (time stamp and address) of incoming sms but the problem is that I am getting the timestamp of incoming sms with around 1 second less than what I am getting from Inbox. e.g the actual time stamp is 12:10:32 in inbox but in the case of receiving incoming sms, it is 12:10:31. I don't know what is the problem.
Please help me find a solution for this.

Related

Is it possible to Send SMS from Flutter without a SIM card?

I'm trying to figure out how to send a SMS from Flutter without using a SIM CARD.
I have a list of contacts followed by the password of each user stored in two seperated Columns in Excel sheet, I'm trying to read these contact in flutter than send the password of each user via SMS services.
Almost every plugin requires a SIM card, but my app would be so much better if its a desktop app.
Thank you.
You can use a service like Twilio to set up a phone number that can be used to send texts. This works by interfacing with the Twilio API over the internet to send your request (what number you want to text, and what the sms content should be, etc) and then Twilio will send the corresponding text message.
Email a Text
Another method, albeit clunkier compared to the others in this article, is to send a text message via email. Each wireless carrier has an email formula for doing so. For example, to send a text message (SMS) to an AT&T user, email "number#txt.att.net," but replace "number" with a 10-digit phone number. To send an MMS (multimedia message, such as a photo) email "number#mms.att.net." Check with the carrier or reference this list of carrier email addresses.
The issue here is the email could end up in the recipients' spam folder or get lost in the shuffle since it will look differently from standard email addresses. You must also know which carrier the recipient uses.
https://20somethingfinance.com/how-to-send-text-messages-sms-via-email-for-free/

Sending emails in the background in the Ionic2 app

I have to send email with user's location within set period of time. I was using Background Geolocation plugin and it's working fine (sending it to the local host). The better way is to send the data with email - it's easier to parse the data and it's more universal and common. I have to send the data to hardcoded email without opening other apps. Is there any way to do it? Maybe using Gmail API?

send sms using ipad through my Own application

I am building a system in iOS on ipad which records appointments. Once a appointment is scheduled, a message needs to be sent to the number given while scheduling. Is there a way i can send a SMS through ipad?
It's not possible to send an SMS while remaining in the app on iOS.
You could allow the user to send an SMS by tapping an element which would bring up the messages app and allow you to send one there, but not in the app itself.
You could however, use your own solution in Obc-C (or written in another language such as PHP) which sends the messages through a message gateway.
An example would be this:
http://net.tutsplus.com/tutorials/php/how-to-send-text-messages-with-php/

How to "Auto SMS Sender" work - send sms in background

This application support send a scheduled sms in background mode! How to they do that?
What do you think about this their info:
In order to send out the scheduled message:
This app must be running on your iPhone, either in the background or in the foreground;
Your iPhone must not be in the airplane mode;
Your iPhone must have carrier's signal at the scheduled time;
NOTES:
If you schedule a message with a large number of recipients, please check with your carrier for the maximum number of recipients allowed per message. If you exceed the maximum number allowed, your message may be blocked by your carrier.
Your iPhone must be powered on at the scheduled time so that the message can be sent out;
If you reboot your iPhone, or turn it off/on, remember to restart this app as soon as possible so that the timer can still be active.
Some results from testing...confirms this app is sending normal SMS WITHOUT user interaction!
WLAN ON + GSM OFF (no reception) => the app does NOT send SMS, even after reception is back no SMS gets send. In the phone's messages log it tells "failed sending SMS"
WLAN OFF + GSM ON => the app sends SMS without user interaction (I checked my bill, and in fact a SMS got sent through the provider! - no data traffic to a server!)
Also, by the way when the SMS is received the sender's SMS number is displayed correctly. I know one could do this through a SMS server - but in fact a REAL SMS got sent through the provider! There was no data traffic, no other cost than my providers SMS charge, and on the past activities it explicitly showed this SMS!
So somehow this app sends a real SMS without user confirmation.
Probably there is a way to use the direct SMS library without Apple's review team finding out? Anyway I know for sure, that Apple rejects apps that use this library (if they find out!)
Your best bet is to setup an intermediate server on the internet that uses an online SMS sending service, and send the SMSs via that route if you need complete automation. (ie, your program on the iPhone sends a UDP packet to your server, which sends the real SMS)

Sending mail regularly

I have an application that collects the report on usage and stores it into the core data model. The application has to send mail every hour to the client despite of the application running or not. I have created a java servlet that runs on google app engine to send email every hour. But, the mail is sent with all the information collected from the iphone.
So, how is it possible to collect data and send mail frequently ? Or how should be the server model(cron job or database) such that it gives smoother user experience.
I did something like this a while ago, you have to be cunning about it.
You can schedule methods for the iPhone to run, and its meant for VOIP, but you can just claim your app is a voip app and run this in the BG. How to Maintain VOIP socket connection in background?
In that method you can send an email out. You won't be able to do it with user input, obviously, but there is a google project out there for easy sending email. http://code.google.com/p/remail-iphone/