Skip to content

Send SMS in Android without opening a messaging app#44

Open
auval wants to merge 3 commits into
tkporter:masterfrom
auval:master
Open

Send SMS in Android without opening a messaging app#44
auval wants to merge 3 commits into
tkporter:masterfrom
auval:master

Conversation

@auval

@auval auval commented Feb 14, 2018

Copy link
Copy Markdown

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

auval commented Feb 14, 2018

Copy link
Copy Markdown
Author

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
Copy Markdown
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?

Comment thread README.md

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

`direct_send` (boolean, optional)

Copy link
Copy Markdown
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

chuyeoh commented Nov 11, 2019

Copy link
Copy Markdown

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

c0mm4nDer commented Jul 20, 2022

Copy link
Copy Markdown

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
Copy Markdown

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