I'm developing application for android by using flex. That app should read sms from android and analise them. How can i read sms? I've searched all over the Internet and couldn't find any articles which would be helpful.
Is there any way to do that instead of using native extention?
"Is there any way to do that instead of using native extention?"
Send sms - yes, but only by calling the device's native SMS client.
Receive/read incoming sms - no.
The Air mobile API includes features that allows you to send SMS messages by invoking the device's native SMS client. There are tutorials available online how to do this, for example this one.
The Air mobile API does not includes methods that allow you to read incoming SMS messages. To implement this on an Android device you would have to write your own Native Extension.This answer on SO explains how to set up a BroadcastReceiver using the Native Android SDK to listen for incoming SMS messages. If you need help on how to implement your own Native Extensions, the Adobe Developer pages on the subject is a good start.
Related
I have a question while studying Android.
I am wondering if there is a way to access sms / mms without setting the Android default sms app.
Thank you.
I am wondering if there is a way to access sms / mms without setting
the Android default sms app.
If your intention is to just read/receive the SMS then Yes. Follow this SO for implementation details.
If your intention is to modify (write/delete) SMS then No.
Recently I found some amazing apps
https://play.google.com/store/apps/details?id=com.onetalkapp&hl=en
or
https://play.google.com/store/apps/details?id=com.flyperinc.notifly
They can intercept messages and replay through their UIs without using original messenger apps.
I Know it is possible to monitor incoming messages by Notification with some permissions.
But I have no idea how to send messages out without using original Apps?
It seems to me it might have security issues..
Thanks a lot.
For telegram I know you should create app with telegram API, you can find guidance on the telegram site.
Once you have configured your API key in your app, you could send messages, read them or even get the telegram contacts with these methods.
I'm developing a hybrid mobile app with Ionic Framework.
I've encountered the following problem.
I need to implement the handler which will fire a refresh function in a controller, when the SMS is received. Also I need a possibility to fire this event only when SMS was received from a specific phone number, so I have to get the SMS info too.
I've read docs of cordova-plugin-sms. It has onSMSArrive event, but this plugin doesn't work with iOS, and I'm not sure that it's also working properly on Android.
Also I've found several questions by this topic:
This - handle received sms using ionic framework, but it has no answers.
And this one, which has the similar content.
I hope, that the community knows something new about this topic.
Is it possible to implement such SMS handler with Ionic for now?
By the way, my priority platform to develop is iOS.
Thanks in advance!
I am just a starter and student researcher in android coding. I am thinking about writing an app that could access the native messaging app in phone. Is it possible to access the native messing app (accessing mean I could be able to send the message from native messaging app and read the incoming message)? How could I be able to read or reference about that topic? Thanks.
What would be the best way to build a sms application with adobe AIR and AS3? An application that send and receive sms. I found how to send using the uri but can't find any explanations about how to receive and display it.
This cannot be done with the latest version of AIR 2.6. AIR mobile API only allows you to send text messages but does not allow you access to the contacts list or received messages. Your best bet would be to switch over to the native APIs to be able to receive messages (i.e. use the Telephony.SMS_RECEIVED intent). However, AFAIK, access to sms inbox is deprecated in the latest native SDK.
I've heard that some future version of AIR may support native extensions which might come handy (to access contact list, inbox etc.) but no dates. So once again, you're best served to switch over to the native API.
Here's an idea you may consider: write a small native server that would read off of the inbox (provided that is possible/listen to the sms receipt notifications) and forward the data to your AIR/Flex app over a socket. Disclaimer: Haven't tried this out myself, so all bets are off.
If you register the AIR application for the sms: intent (which might be the "sms inbox" dirk mentioned), then you will at least get the notification.
Cheers