Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
4
Erster Beitrag:
vor 1 Jahr, 4 Monaten
Letzter Beitrag:
vor 1 Jahr, 4 Monaten
Beteiligte Autoren:
Yogi Yang, Danny Lauwers, Paulo Oliveira

[WM] - How to monitor SMS received in phone?

Startbeitrag von Yogi Yang am 28.03.2016 14: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

Antworten:

HI Yogi,

I'm not an expert in WM but why SMS and not push notification?

http://doc.windev.com/en-US/?1000021015

von Paulo Oliveira - am 29.03.2016 08:16
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

von Danny Lauwers - am 29.03.2016 13:21
Hello,

Quote
Paulo Oliveira
I'm not an expert in WM but why SMS and not push notification?

http://doc.windev.com/en-US/?1000021015

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

von Yogi Yang - am 30.03.2016 09:45
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.