|
FOROS PROFESIONALES WINDEV, WEBDEV y WINDEV Mobile |
| | | | | |
| [WM] - How to monitor SMS received in phone? |
| Iniciado por guest, 28,mar. 2016 16:56 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 28,marzo 2016 - 16:56 |
Hello,
In an app we are planning to verify the user by sending SMS to the mobile number registered with us. For that we want to implement SMS monitoring so when we receive that SMS the software will automatically extract the code from the SMS and proceed instead of user having to open the SMS, copy the code and paste it in our app.
I searched the help but could not find any way by which we can monitor SMS being received by the phone.
Please guide me as to how we can do this.
TIA
Yogi Yang |
| |
| |
| | | |
|
| | |
| |
| Publicado el 29,marzo 2016 - 10:16 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 29,marzo 2016 - 15:21 |
Hi,
Depending on how you want todo this you can use the SMS functions of WinDev Mobile
http://doc.pcsoft.fr/en-US/?3068005&name=WinDev_and_the_SMSs
Or you can write your own broadcast receiver in JAVA and hook it up. Then when an SMS is received by the phone a piece of Java code is executed. In that code you can then do your stuff todo the verification, call a WLanguage function etc...
PCSoft should implement a service and broadcast support in WLanguage, so hooking up to android events and broadcasts etc... would be much simplere.
Good Luck Danny |
| |
| |
| | | |
|
| | |
| |
| Publicado el 30,marzo 2016 - 11:45 |
Hello,
Quote Paulo Oliveira
I'm not an expert in WM but why SMS and not push notification?
http://doc.windev.com/en-US/… Because I have never used it and this never came to my mind. Thanks for the suggestion. I will surely look in this direction.
Quote Danny Lauwers
Depending on how you want todo this you can use the SMS functions of WinDev Mobile
http://doc.pcsoft.fr/en-US/?3068005&name=WinDev_and_the_SMSs
Or you can write your own broadcast receiver in JAVA and hook it up. Then when an SMS is received by the phone a piece of Java code is executed. In that code you can then do your stuff todo the verification, call a WLanguage function etc...
PCSoft should implement a service and broadcast support in WLanguage, so hooking up to android events and broadcasts etc... would be much simplere.
I thought about reading SMS from Phone memory but this would mean that I will have to keep on polling the phone and retrieving the sms repeatedly till the message I want arrives. But will doing this slow down the phone OS or not? that is what I am concerned about.
As for JAVA. Well that is at present of limits. I don't know JAVA and that is the reason why I am using WM for mobile apps development...!
TIA
Yogi Yang |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|