All Projects → Bruno-Furtado → React Native Sms Retriever

Bruno-Furtado / React Native Sms Retriever

Licence: mit
Android SMS Retriever API for React Native.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to React Native Sms Retriever

Exrm deb
Create a deb for your elixir release with ease
Stars: ✭ 75 (-57.63%)
Mutual labels:  otp
Otpauth
One Time Password (HOTP/TOTP) library for Node.js, Deno and browsers.
Stars: ✭ 135 (-23.73%)
Mutual labels:  otp
Immortal
Helper modules for OTP applications
Stars: ✭ 160 (-9.6%)
Mutual labels:  otp
Memento
Collect saved items from different sources around the web
Stars: ✭ 89 (-49.72%)
Mutual labels:  otp
Thegorgeousotp
Phone number authentication + OTP login page built with @flutter 😍
Stars: ✭ 116 (-34.46%)
Mutual labels:  otp
Aegis
A free, secure and open source app for Android to manage your 2-step verification tokens.
Stars: ✭ 2,692 (+1420.9%)
Mutual labels:  otp
Jsotp
Javascript One-Time Password module.
Stars: ✭ 71 (-59.89%)
Mutual labels:  otp
Multiotp
multiOTP open source strong two factor authentication PHP library, OATH certified, with TOTP, HOTP, Mobile-OTP, YubiKey, SMS, QRcode provisioning, etc.
Stars: ✭ 173 (-2.26%)
Mutual labels:  otp
Phpotp
Php Implementation of the OTP algorythm
Stars: ✭ 125 (-29.38%)
Mutual labels:  otp
Flutter pinput
🔥🚀 Flutter package to create Pin code input text field with every pixel customization possibility 🎨 with beautiful animations
Stars: ✭ 157 (-11.3%)
Mutual labels:  otp
Exnn
An Elixir Evolutive Neural Network framework à la G.Sher
Stars: ✭ 93 (-47.46%)
Mutual labels:  otp
Cloak
A Command Line OTP Authenticator application.
Stars: ✭ 112 (-36.72%)
Mutual labels:  otp
Gen rmq
Elixir AMQP consumer and publisher behaviours
Stars: ✭ 146 (-17.51%)
Mutual labels:  otp
Totp Cli
A cli-based pass-backed TOTP app
Stars: ✭ 76 (-57.06%)
Mutual labels:  otp
Authorizer
Authorizer is a Password Manager for Android. It emulates an HID keyboard over USB and enters your credentials on your target device. Additionally it supports OTP 🔑📴
Stars: ✭ 172 (-2.82%)
Mutual labels:  otp
Ticker Elixir
Elixir OTP Stock Quotes App (IEX Group) | Current Branch: elixir_1.8_iex
Stars: ✭ 71 (-59.89%)
Mutual labels:  otp
Yubikey Manager Qt
Cross-platform application for configuring any YubiKey over all USB interfaces.
Stars: ✭ 137 (-22.6%)
Mutual labels:  otp
Office Tool
© 2016-2021 Yerong. All Rights Reserved.
Stars: ✭ 3,657 (+1966.1%)
Mutual labels:  otp
Otpview
A custom view to enter otp/pin of different sizes used usually in cases of authentication.
Stars: ✭ 172 (-2.82%)
Mutual labels:  otp
Android Otp Extractor
Extracts OTP tokens from rooted Android devices
Stars: ✭ 147 (-16.95%)
Mutual labels:  otp

Platform License NPM Downloads Codebeat Gitter

Cover

With the SMS Retriever API, you can perform SMS-based user verification in your Android app automatically, without requiring the user to manually type verification codes, and without requiring any extra app permissions.



Read Phone Number Read SMS


Installation

Automatic linking (>= 0.60)

npm install --save react-native-sms-retriever

Manual linking (< 0.60)

npm install --save react-native-sms-retriever
react-native link react-native-sms-retriever

If you don't like to use react-native link, check Manual Installation Wiki Page.

Basic Usage

import SmsRetriever from 'react-native-sms-retriever';

// Get the phone number (first gif)
 _onPhoneNumberPressed = async () => {
  try {
    const phoneNumber = await SmsRetriever.requestPhoneNumber();
  } catch (error) {
    console.log(JSON.stringify(error));
  }
 };

// Get the SMS message (second gif)
_onSmsListenerPressed = async () => {
  try {
    const registered = await SmsRetriever.startSmsRetriever();
    if (registered) {
      SmsRetriever.addSmsListener(event => {
        console.log(event.message);
        SmsRetriever.removeSmsListener();
      }); 
    }
  } catch (error) {
    console.log(JSON.stringify(error));
  }
};

If you have problems to get the SMS content, check the SMS Rules Wiki Page.

Methods

Method Return Description
requestPhoneNumber() Promise<String> Obtain the user's phone number (using the hint picket).
startSmsRetriever() Promise<Boolean> Start to listen for SMS messages.
addSmsListener(event: Function) Promise<Boolean> Get the SMS content with: event.message.
removeSmsListener() Void Stop to listen for SMS messages.

Check the erros of each method on Erros Wiki Page.

Change-log

A brief summary of each React Native SMS Retriever release can be found on the releases.

License

This code is distributed under the terms and conditions of the MIT License.


Made with ❤ in Curitiba 🇧🇷

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].