andreyvital / react-native-android-sms-listener

Allows you to listen for incoming SMS messages using React Native
MIT License
358 stars 99 forks source link

Trigger multiple callbacks when received one sms #38

Closed done134 closed 6 years ago

done134 commented 6 years ago

if (subscription == null) { subscription = SmsListener.addListener(message => { console.info(message); this._smsAnalysis(message.body) }); } ![Uploading image.png…]()

_smsAnalysis function is called multiple times when received one sms

ZuhaKarim commented 6 years ago

Were you able to figure out this issue? HOW DID YOU DO IT PLEASE GUIDE ME.

vgm8 commented 5 years ago

I'm having the same problem. When I send a sms with accents it will call two times. For example, if I send the message: Sent from your Twilio trial account - el código que has seleccionado es 123457

First time is called with: Sent from your Twilio trial account - el código que has seleccionad

Second time is called with: o es 123457

it looks like it is dividing de message in two. Any idea why? Thanks