Skip to content

add autoSendMultiSim method #76

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mojabyte
Copy link

This PR adds autoSendMultiSim method that gets an extra simSlot argument for selecting which SIM slot to send SMS from. simSlot could be either 0 for SIM slot 1 and 1 for SIM slot 2.
This method requires an additional android.permission.READ_PHONE_STATE permission to access SIM cards.
The autoSend method remains the same as before, passing null as simSlot argument to autoSendMultiSim method which selects the default SIM slot, and it doesn't need that permission.

@mojabyte
Copy link
Author

#66

thaikhuong62000 pushed a commit to thaikhuong62000/react-native-get-sms-android that referenced this pull request Jan 27, 2024
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.

1 participant