cordova-plugin-sms icon indicating copy to clipboard operation
cordova-plugin-sms copied to clipboard

"onSmsArrive" is triggered only once

Open agarwalkartik opened this issue 8 years ago • 4 comments

I am using this plugin with ionic framework. After initializing the watch by SMS.startWatch() , it works well when the first SMS arrives. But it does not broadcasts any event for subsequent messages.

agarwalkartik avatar Apr 21 '16 08:04 agarwalkartik

Is it the same message that you're sending twice? The plugin is coded to ignore repeat messages:

https://github.com/floatinghotpot/cordova-plugin-sms/blob/master/src/android/SMSPlugin.java#L327

Change the content a bit and it should trigger again, although I can't say what the author's intentions were when this was written.

ntsim avatar May 09 '16 13:05 ntsim

Did you try delete the received SMS?

Meaning: Recive -> watch fired -> delete sms -> recive again -> watch fired again (?) ...

webmaster-imaginet avatar Jul 07 '16 07:07 webmaster-imaginet

if you are sending same SMS again onSMSArrive will not trigger..

PRATHYUSH-DOM avatar Dec 13 '17 07:12 PRATHYUSH-DOM

is it still the same? I am facing the same issue.

Lokeai avatar Oct 05 '18 18:10 Lokeai