Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not receive SMS as expected #13

Open
ayalpani opened this issue Apr 19, 2018 · 0 comments
Open

Can not receive SMS as expected #13

ayalpani opened this issue Apr 19, 2018 · 0 comments

Comments

@ayalpani
Copy link

Hi,

I somehow can not receive Messages as expected. Calling the below code, I only get "SMS supported" alert. When my phone receives an SMS, this code just remains silent. Any Ideas are greatly appreciated, thanks!

SmsReceiver.isSupported ((function(supported) {

      if( supported ) {
        alert("SMS supported!")
        SmsReceiver.startReception(({ messageBody, originatingAddress }) => {
          alert(messageBody)
        }, () => {
          alert("Error while receiving messages")
        })
      }
      else {
        alert("SMS not supported")
      }

    }), function() {
      alert("Error while checking the SMS support");
    })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant