All Projects → Intuz-production → Firebase Phone Verification Android

Intuz-production / Firebase Phone Verification Android

Licence: mit
Android Custom Firebase Phone Verification

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Firebase Phone Verification Android

strapi-firebase-auth
Learn how to implement firebase authentication into strapi.
Stars: ✭ 25 (+66.67%)
Mutual labels:  firebase-authentication
Angularfirebase Authentication
Learn to create complete Angular 7 Firebase 5 authentication system tutorial from scratch. Learn how to setup sign In, sign up using custom email and password, social login provides such as Google and Facebook, protect routes using canActivate method.
Stars: ✭ 286 (+1806.67%)
Mutual labels:  firebase-authentication
Rxfirebase
Rxjava 2.0 wrapper on Google's Android Firebase library.
Stars: ✭ 509 (+3293.33%)
Mutual labels:  firebase-authentication
Firebase-Phone-Auth-Demo
Demo Project to show how to use Phone Authentication in Flutter with Firebase backend
Stars: ✭ 75 (+400%)
Mutual labels:  firebase-authentication
React Redux Firebase Authentication
🔥Boilerplate Project for Authentication with Firebase in React and Redux
Stars: ✭ 265 (+1666.67%)
Mutual labels:  firebase-authentication
Firebase Admin Java
Firebase Admin Java SDK
Stars: ✭ 345 (+2200%)
Mutual labels:  firebase-authentication
capacitor-firebase-authentication
⚡️ Capacitor plugin for Firebase Authentication.
Stars: ✭ 67 (+346.67%)
Mutual labels:  firebase-authentication
Wanderlust The Travellers App
👟 An android application for travellers which allows them to save their journey experiences at one place in an organizable way. For detailed description, read the README.md file. Moreover, the application's design follows the latest HCI and UI/UX design guidelines.
Stars: ✭ 23 (+53.33%)
Mutual labels:  firebase-authentication
Firebase Authentication With Angular
🔥 Angular tutorial to setup Firebase Authentication with Angular. Learn how to setup social login providers such as Facebook, Twitter and Google and also custom email/password authentication.
Stars: ✭ 270 (+1700%)
Mutual labels:  firebase-authentication
Angular Shoppingcart
ShoppingCart (Ecommerce) 🛒 Application using Angular10, Firebase, PWA, Drag&Drop, Materialized Bootstrap and i18n 🚀🔥👨‍💻
Stars: ✭ 483 (+3120%)
Mutual labels:  firebase-authentication
Simple-Blog-App
Simple Blog application in Android completely based on Firebase using Firebase-RealTimeDB, Firebase-Auth, Firebase-Storage, Firebase-CloudMessaging, Firebase-AdMob
Stars: ✭ 21 (+40%)
Mutual labels:  firebase-authentication
react-admin-dashboard
Building an admin dashboard with React
Stars: ✭ 20 (+33.33%)
Mutual labels:  firebase-authentication
React Gatsby Firebase Authentication
🐣🔥Starter Project / Boilerplate for Authentication with Firebase and plain React in Gatsby.js
Stars: ✭ 356 (+2273.33%)
Mutual labels:  firebase-authentication
FireApp
FirebaseApp is built for learning purposes, especially to see how Firebase Products work together.
Stars: ✭ 34 (+126.67%)
Mutual labels:  firebase-authentication
Quickstart Unity
Firebase Quickstart Samples for Unity
Stars: ✭ 553 (+3586.67%)
Mutual labels:  firebase-authentication
ionic-auth-firebaseui
Ionic UI component for firebase authentication powered by @firebase, @angular and @angular/fire
Stars: ✭ 25 (+66.67%)
Mutual labels:  firebase-authentication
Firebase Js Sdk
Firebase Javascript SDK
Stars: ✭ 3,844 (+25526.67%)
Mutual labels:  firebase-authentication
React Firebase Authentication
🔥 Boilerplate Project for Authentication with Firebase in React.
Stars: ✭ 863 (+5653.33%)
Mutual labels:  firebase-authentication
Firebase Admin Python
Firebase Admin Python SDK
Stars: ✭ 591 (+3840%)
Mutual labels:  firebase-authentication
Laravel Firebase
A Laravel package for the Firebase PHP Admin SDK
Stars: ✭ 369 (+2360%)
Mutual labels:  firebase-authentication

Introduction

INTUZ is presenting a custom Firebase Phone Authentication in Android,Just go through this tutorial and you will be good to go.


Features

  • Ability to customize according to your requirement.
  • Ability send sms and auto read code, Also you can resend the code if sms is not delivered on time.
  • Easy to integrate

Screenshots/firebase_auth_android.png

Getting Started

  1. Setup your app in firebase console at: https://console.firebase.google.com/
  2. Add your SHA-1 key in firebase console.
  3. Enable Phone Number sign-in for your Firebase project
  4. To sign in users by SMS, you must first enable the Phone Number sign-in method for your Firebase project:
  5. In the Firebase console, open the Authentication section.
  6. On the Sign-in Method page, enable the Phone Number sign-in method.

Permission and declaration in AndroidManifest.xml file

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    <uses-permission android:name="android.permission.READ_SMS" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />

You can customize button color, toolbar color etc by using below code in your app's style.xml

     <style name="Theme.Phone.Verification" parent="Theme.AppCompat.Light.NoActionBar">

        <!-- Color Palette -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>

        <!-- Here we define our custom attributes -->
        <item name="verification_button_color">@color/colorPrimary</item>
        <item name="title_of_mobile_verification">@string/app_name</item>

    </style>

Start Phone verification by putting below code in your view :

                Intent intent = new Intent(MainActivity.this, PhoneNumberActivity.class);
                //Optionally you can add toolbar title
                intent.putExtra("TITLE", getResources().getString(R.string.app_name));
                //Optionally you can pass phone number to populate automatically.
                intent.putExtra("PHONE_NUMBER", "");
                startActivityForResult(intent, REQUEST_PHONE_VERIFICATION);

Handle your onActivityResult for getting phone number auth result as:

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        switch (requestCode) {
            case REQUEST_PHONE_VERIFICATION:
// If mobile number is verified successfully then you get your phone number to perform further operations.
                if (data != null && data.hasExtra("PHONE_NUMBER") && data.getStringExtra("PHONE_NUMBER") != null) {
                    String phoneNumber = data.getStringExtra("PHONE_NUMBER");
                    mobileNumber = phoneNumber;
                } else {
                    // If mobile number is not verified successfully You can hendle according to your requirement.
                    Toast.makeText(MainActivity.this,getString(R.string.mobile_verification_fails),Toast.LENGTH_SHORT);
                }
                break;
        }
    }

Bugs and Feedback

For bugs, questions and discussions please use the Github Issues.


License

Copyright (c) 2018 Intuz Solutions Pvt Ltd.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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].