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

Is there a particular reason why sending message in background is not supported? #72

Open
picodoth opened this issue Sep 25, 2019 · 2 comments

Comments

@picodoth
Copy link

picodoth commented Sep 25, 2019

In the readme, there is a section describing

Currently, only user-initiated sending of an SMS is supported. This means you can't use react-native-sms to send an SMS in the background-- this package displays the native SMS view (populated with any recipients/body you want), and gives a callback describing the status of the SMS (completed/cancelled/error). PRs are welcome!

Is there a particular reason for not doing it? I'm very new to this and thanks your time for answering!

@tkporter
Copy link
Owner

tkporter commented Sep 27, 2019

Hey! There’s a PR that does this for Android that’s been open for ages (#44) that I’ve been meaning to merge with some cleanup (particularly make sure that the permissions needed for that aren’t required)

As for iOS, Apple doesn’t allow background sms for security reasons :)

@chuyeoh
Copy link

chuyeoh commented Nov 11, 2019

Please check the google app store. If your app is not a Communication type Application, you are not allowed to use the SMS permission.

I would advice to use the same method as iOS where it redirects to a SMS type Application

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

3 participants