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

Application crashed after receiving SMS #46

Closed Ahmedfathyarafa closed 4 years ago

Ahmedfathyarafa commented 5 years ago

The listener is working well and the body of the received message is logged successfully but the application is crashing immediately after receiving the SMS.

Any solution ?? @andreyvital

devanshsadhotra25 commented 5 years ago

code>?

Ahmedfathyarafa commented 5 years ago

@devanshsadhotra25

Here's the code

import SmsListener from 'react-native-android-sms-listener'

componentDidMount(){
    SmsListener.addListener(message => {
        console.info(message)
    })
}

after receiving the SMS I can see the message in the console . but once the message received the app is closed.

And here is the error :

WhatsApp Image 2019-07-27 at 12 05 55 AM

Borhanof commented 1 year ago

I'm facing the same issue here and the issue is not solved