How to handle an inbound SMS messages with Ionic - android

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!

Related

Can I use onesignal to trigger change order status automatically?

Can I use Onesignal to send a notification of order changes to an Android device then if the user already opened the application on order's page/view the notification will be not shown but the order status on that page will be changed?
If yes, can I know the reference of documentation/tutor? If no, what are alternative ways to do it?
I have a project using Onesignal to send the notifications to the android devices. Currently just Simple notif, but my boss asked me to make the mobile app can auto change status order without user action. I'm a backend engineer, not an android dev so I don't know what really works of Onesignal in android. I just know Onesignal can be used to send the notification but what about data process after notification sent?
This is what I understood: Your app has some kind of market or something from which people can order stuff. So, you want to know if OneSignal can send automated notifications as the order status changes?
If I have got it correct, my best guess will be, no. OneSignal can only manually send out notifications. The closest one can get with OneSignal to automations is scheduling notifications to be sent later. To achieve your purpose, your Android devs will probabaly have to write some code on their own and integrate it some way with the order status and all. Or else, your boss will have to appoint a few people who can track the order of the people and manually send out notifications to them using OneSignal (but, identifying the correct device might not be so easy).
That's my guess. But, OneSignal's support team is pretty nice. They might take a few days to answer, but, it's worth asking them if they can help your developers integrate the order status and OneSignal's notifications in some way.

How to reply messages without entering Messenger Apps(ex: what's app, Fb, Telegram)?

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.

Receive SMS and process the content

I'm developing an app (iOS/Android) with SMS validation. The user receives an SMS with the access code. The app validates the code and if it is valid, enter it. So far no problem, but now my client wants the SMS that is recived to be read automatically by the app (as it does whatsapp).
Has anyone done something similar?
Is there a module that allows me to do this?
I'm working with:
Titanium Appcelerator SDK 6.0.4
IPhone / Android
Thanks in advance.
I made this module a while ago to listen to incoming SMS:
https://github.com/m1ga/ti.miga.sms.receive
Should still work with the latest TiSDK

How can i read sms using flex in android?

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.

How to receive sms within adobe AIR app on android

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

Categories

Resources