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

Send SMS in Android without opening a messaging app #44

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

auval
Copy link

@auval auval commented Feb 14, 2018

I've added a new prop to enable sending sms in Android without opening a messaging app.
The change is backward compatible (when not setting the prop to true, there is not change from current flow).

@auval
Copy link
Author

auval commented Feb 14, 2018

Here's an example project that uses my pull request:
https://github.com/auval/react-native-sms-contacts

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tkporter.sendsms">

<uses-permission android:name="android.permission.SEND_SMS" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this still prompt users of apps that are not using the direct-send feature to use this permission?

@@ -85,6 +89,11 @@ Provides the phone number recipients to show by default

`successTypes` (Array (strings), Andriod only, required)

`direct_send` (boolean, optional)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change this to directSend to keep with the camelCase pattern?

@chuyeoh
Copy link

chuyeoh commented Nov 11, 2019

Please DO NOT merge this. Google store has changed its policy and normal apps are not allowed to send sms in the background but to forward the sms sending to a SMS/Communication type Application

Refer to docs
https://support.google.com/googleplay/android-developer/answer/9047303?hl=en

@c0mm4nDer
Copy link

c0mm4nDer commented Jul 20, 2022

This PR is useful and direct send is optional. that means if somebody doesn't need those feature can, don't use!

@Kajanan02
Copy link

Using this application we can Send SMS in Android without opening a messaging app
react-native-send-direct-sms

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

Successfully merging this pull request may close these issues.

7 participants