Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-native-sms-retriever-android
Advanced tools
Readme
$ npm install react-native-sms-retriever-android --save
$ react-native link react-native-sms-retriever-android
android/app/src/main/java/[...]/MainActivity.java
import com.bhavesh.smsretriever.RNSmsRetrieverAndroidPackage;
to the imports at the top of the filenew RNSmsRetrieverAndroidPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-sms-retriever-android'
project(':react-native-sms-retriever-android').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sms-retriever-android/android')
android/app/build.gradle
:
compile project(':react-native-sms-retriever-android')
import RNSmsRetrieverAndroid from 'react-native-sms-retriever-android';
/*
* Returns app signature array, which is used to identify the SMS sent from your server
* callback: (optional) to receive signature array
*/
const signatureArray = await RNSmsRetrieverAndroid.getAppSignature(callback);
/*
* Subscribe to listen for incoming SMS
* listener: ({ message: string, error: string, code: number}) => void
* callback: (optional) to check if subscription was successful or not
*/
const subscription = await RNSmsRetrieverAndroid.retrieveSMS(listener, callback);
// To remove subscription
subscription.remove();
App signature will vary for debug and release builds
Subscription will be valid for one time only. To listen for next sms, subscribe again
Subscription is valid for 5 minutes. After that listener will receive timeout error
Example SMS: "<#> Your ExampleApp code is: 123ABC78 FA+9qCX9VSu"
FA+9qCX9VSu => This is your app signature
FAQs
Android SMS Retriever API implementation in react-native
The npm package react-native-sms-retriever-android receives a total of 0 weekly downloads. As such, react-native-sms-retriever-android popularity was classified as not popular.
We found that react-native-sms-retriever-android demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.