OTP is not getting from firebase code is proper The Next CEO of Stack OverflowDoes a finally block always get executed in Java?Create ArrayList from arrayHow do I call one constructor from another in Java?How to get an enum value from a string value in Java?Get screen dimensions in pixelsStop EditText from gaining focus at Activity startupHow to avoid Java code in JSP files?Is there a way to get the source code from an APK file?Bug: onNewIntent not called for singleTop activity with Intent.FLAG_ACTIVITY_NEW_TASKProper use cases for Android UserManager.isUserAGoat()?

What happens if you roll doubles 3 times then land on "Go to jail?"

% symbol leads to superlong (forever?) compilations

Need some help with wall behind rangetop

Rotate a column

Implement the Thanos sorting algorithm

Is it safe to use c_str() on a temporary string?

Anatomically Correct Mesopelagic Aves

How to safely derail a train during transit?

Increase performance creating Mandelbrot set in python

How to Reset Passwords on Multiple Websites Easily?

What's the point of interval inversion?

Can a caster that cast Polymorph on themselves stop concentrating at any point even if their Int is low?

Return the Closest Prime Number

Is HostGator storing my password in plaintext?

Why does standard notation not preserve intervals (visually)

How to make a variable always equal to the result of some calculations?

What do "high sea" and "carry" mean in this sentence?

How long to clear the 'suck zone' of a turbofan after start is initiated?

When airplanes disconnect from a tanker during air to air refueling, why do they bank so sharply to the right?

Visit to the USA with ESTA approved before trip to Iran

Why does C# sound extremely flat when saxophone is tuned to G?

How to be diplomatic in refusing to write code that breaches the privacy of our users

How can I open an app using Terminal?

Term for the "extreme-extension" version of a straw man fallacy?



OTP is not getting from firebase code is proper



The Next CEO of Stack OverflowDoes a finally block always get executed in Java?Create ArrayList from arrayHow do I call one constructor from another in Java?How to get an enum value from a string value in Java?Get screen dimensions in pixelsStop EditText from gaining focus at Activity startupHow to avoid Java code in JSP files?Is there a way to get the source code from an APK file?Bug: onNewIntent not called for singleTop activity with Intent.FLAG_ACTIVITY_NEW_TASKProper use cases for Android UserManager.isUserAGoat()?










0















I want to get OTP from Firebase to my phone for verification purpose, i have done everything as the documentation says but at the end i am not getting OTP please help me, i know something is wrong with my code anyone can correct me ?
my app is connected and working with firebase here is my activity java code :



still am getting error



public class LoginActivity extends AppCompatActivity 

String phone_number;
FirebaseAuth auth;
PhoneAuthProvider.OnVerificationStateChangedCallbacks mCallbacks;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);

mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks()
@Override
public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)



@Override
public void onVerificationFailed(FirebaseException e)


;

CardView card_view = findViewById(R.id.cardView);
card_view.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View v)
EditText phonetextview = findViewById(R.id.phonetextview);
phone_number = PhoneNumberUtils.formatNumber(phonetextview.getText().toString());

send();

Toast toast = Toast.makeText(getApplicationContext(), phone_number,
Toast.LENGTH_SHORT);
toast.show();

);


private void send()

PhoneAuthProvider.getInstance().verifyPhoneNumber(
phone_number, // Phone number to verify
60, // Timeout duration
TimeUnit.SECONDS, // Unit of timeout
this, // Activity (for callback binding)
mCallbacks); // ForceResendingToken from callbacks




here is the logcat



2019-03-08 15:29:36.095 22108-22108/com.example.meenvandi E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.meenvandi, PID: 22108
java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.example.meenvandi. Make sure to call FirebaseApp.initializeApp(Context) first.
at com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@16.0.1:219)
at com.google.firebase.auth.PhoneAuthProvider.getInstance(Unknown Source:5)
at com.example.meenvandi.LoginActivity.send(LoginActivity.java:96)
at com.example.meenvandi.LoginActivity.access$000(LoginActivity.java:28)
at com.example.meenvandi.LoginActivity$2.onClick(LoginActivity.java:77)
at android.view.View.performClick(View.java:6330)
at android.view.View$PerformClick.run(View.java:25136)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:192)
at android.app.ActivityThread.main(ActivityThread.java:6778)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:875)


2019-03-08 15:29:36.108 22108-22108/com.example.meenvandi I/Process: Sending signal. PID: 22108 SIG: 9



i am getting this error after creating class



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.meenvandi"
tools:ignore="ExtraText">


<uses-permission android:name="android.permission.INTERNET"/>


<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Otp"></activity>
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>


Updated Codes



public class LoginActivity extends AppCompatActivity 

String phone_number;
FirebaseAuth auth;
PhoneAuthProvider.OnVerificationStateChangedCallbacks mCallbacks;


@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);




mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks()


@Override
public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)



@Override
public void onVerificationFailed(FirebaseException e)

e.printStackTrace();

Toast toast = Toast.makeText(getApplicationContext(), (CharSequence) e,
Toast.LENGTH_SHORT);
toast.show();




;


CardView card_view = findViewById(R.id.cardView);

card_view.setOnClickListener(new View.OnClickListener()

@Override
public void onClick(View v)




EditText phonetextview = findViewById(R.id.phonetextview);
phone_number = PhoneNumberUtils.formatNumber(phonetextview.getText().toString());

send();



Toast toast = Toast.makeText(getApplicationContext(), phone_number,
Toast.LENGTH_SHORT);
toast.show();






);



private void send()
FirebaseApp.initializeApp(this);
PhoneAuthProvider.getInstance().verifyPhoneNumber(
phone_number, // Phone number to verify
60, // Timeout duration
TimeUnit.SECONDS, // Unit of timeout
this, // Activity (for callback binding)
mCallbacks); // ForceResendingToken from callbacks







Applicationclass



package com.example.meenvandi;

import android.app.Application;

import com.google.firebase.FirebaseApp;

public class Applicationclass extends Application
@Override
public void onCreate()
super.onCreate();
FirebaseApp.initializeApp(this);//here we are intializing firebase




updated manifest



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.meenvandi"
tools:ignore="ExtraText">


<uses-permission android:name="android.permission.INTERNET"/>


<application
android:name="com.example.meenvandi.Applicationclass"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Otp"></activity>
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>


gradle 1



// Top-level build file where you can add configuration options common to 
all sub-projects/modules.

buildscript
repositories
google()
jcenter()


dependencies
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.google.gms:google-services:4.1.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files



allprojects
repositories
google()
jcenter()




task clean(type: Delete)
delete rootProject.buildDir



gradle 2



apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android
compileSdkVersion 28
defaultConfig
applicationId "com.example.meenvandi"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-auth:16.0.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'










share|improve this question
























  • what error you are getting?

    – Nouman Ch
    Mar 8 at 13:10











  • try @Override public void onVerificationFailed(FirebaseException e) e.printStackTrace();

    – Nouman Ch
    Mar 8 at 13:11











  • code is proper?

    – Jaison
    Mar 8 at 13:12











  • yes it looks proper.

    – Nouman Ch
    Mar 8 at 13:15











  • then why it is happeining?

    – Jaison
    Mar 8 at 13:27















0















I want to get OTP from Firebase to my phone for verification purpose, i have done everything as the documentation says but at the end i am not getting OTP please help me, i know something is wrong with my code anyone can correct me ?
my app is connected and working with firebase here is my activity java code :



still am getting error



public class LoginActivity extends AppCompatActivity 

String phone_number;
FirebaseAuth auth;
PhoneAuthProvider.OnVerificationStateChangedCallbacks mCallbacks;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);

mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks()
@Override
public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)



@Override
public void onVerificationFailed(FirebaseException e)


;

CardView card_view = findViewById(R.id.cardView);
card_view.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View v)
EditText phonetextview = findViewById(R.id.phonetextview);
phone_number = PhoneNumberUtils.formatNumber(phonetextview.getText().toString());

send();

Toast toast = Toast.makeText(getApplicationContext(), phone_number,
Toast.LENGTH_SHORT);
toast.show();

);


private void send()

PhoneAuthProvider.getInstance().verifyPhoneNumber(
phone_number, // Phone number to verify
60, // Timeout duration
TimeUnit.SECONDS, // Unit of timeout
this, // Activity (for callback binding)
mCallbacks); // ForceResendingToken from callbacks




here is the logcat



2019-03-08 15:29:36.095 22108-22108/com.example.meenvandi E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.meenvandi, PID: 22108
java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.example.meenvandi. Make sure to call FirebaseApp.initializeApp(Context) first.
at com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@16.0.1:219)
at com.google.firebase.auth.PhoneAuthProvider.getInstance(Unknown Source:5)
at com.example.meenvandi.LoginActivity.send(LoginActivity.java:96)
at com.example.meenvandi.LoginActivity.access$000(LoginActivity.java:28)
at com.example.meenvandi.LoginActivity$2.onClick(LoginActivity.java:77)
at android.view.View.performClick(View.java:6330)
at android.view.View$PerformClick.run(View.java:25136)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:192)
at android.app.ActivityThread.main(ActivityThread.java:6778)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:875)


2019-03-08 15:29:36.108 22108-22108/com.example.meenvandi I/Process: Sending signal. PID: 22108 SIG: 9



i am getting this error after creating class



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.meenvandi"
tools:ignore="ExtraText">


<uses-permission android:name="android.permission.INTERNET"/>


<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Otp"></activity>
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>


Updated Codes



public class LoginActivity extends AppCompatActivity 

String phone_number;
FirebaseAuth auth;
PhoneAuthProvider.OnVerificationStateChangedCallbacks mCallbacks;


@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);




mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks()


@Override
public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)



@Override
public void onVerificationFailed(FirebaseException e)

e.printStackTrace();

Toast toast = Toast.makeText(getApplicationContext(), (CharSequence) e,
Toast.LENGTH_SHORT);
toast.show();




;


CardView card_view = findViewById(R.id.cardView);

card_view.setOnClickListener(new View.OnClickListener()

@Override
public void onClick(View v)




EditText phonetextview = findViewById(R.id.phonetextview);
phone_number = PhoneNumberUtils.formatNumber(phonetextview.getText().toString());

send();



Toast toast = Toast.makeText(getApplicationContext(), phone_number,
Toast.LENGTH_SHORT);
toast.show();






);



private void send()
FirebaseApp.initializeApp(this);
PhoneAuthProvider.getInstance().verifyPhoneNumber(
phone_number, // Phone number to verify
60, // Timeout duration
TimeUnit.SECONDS, // Unit of timeout
this, // Activity (for callback binding)
mCallbacks); // ForceResendingToken from callbacks







Applicationclass



package com.example.meenvandi;

import android.app.Application;

import com.google.firebase.FirebaseApp;

public class Applicationclass extends Application
@Override
public void onCreate()
super.onCreate();
FirebaseApp.initializeApp(this);//here we are intializing firebase




updated manifest



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.meenvandi"
tools:ignore="ExtraText">


<uses-permission android:name="android.permission.INTERNET"/>


<application
android:name="com.example.meenvandi.Applicationclass"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Otp"></activity>
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>


gradle 1



// Top-level build file where you can add configuration options common to 
all sub-projects/modules.

buildscript
repositories
google()
jcenter()


dependencies
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.google.gms:google-services:4.1.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files



allprojects
repositories
google()
jcenter()




task clean(type: Delete)
delete rootProject.buildDir



gradle 2



apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android
compileSdkVersion 28
defaultConfig
applicationId "com.example.meenvandi"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-auth:16.0.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'










share|improve this question
























  • what error you are getting?

    – Nouman Ch
    Mar 8 at 13:10











  • try @Override public void onVerificationFailed(FirebaseException e) e.printStackTrace();

    – Nouman Ch
    Mar 8 at 13:11











  • code is proper?

    – Jaison
    Mar 8 at 13:12











  • yes it looks proper.

    – Nouman Ch
    Mar 8 at 13:15











  • then why it is happeining?

    – Jaison
    Mar 8 at 13:27













0












0








0








I want to get OTP from Firebase to my phone for verification purpose, i have done everything as the documentation says but at the end i am not getting OTP please help me, i know something is wrong with my code anyone can correct me ?
my app is connected and working with firebase here is my activity java code :



still am getting error



public class LoginActivity extends AppCompatActivity 

String phone_number;
FirebaseAuth auth;
PhoneAuthProvider.OnVerificationStateChangedCallbacks mCallbacks;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);

mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks()
@Override
public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)



@Override
public void onVerificationFailed(FirebaseException e)


;

CardView card_view = findViewById(R.id.cardView);
card_view.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View v)
EditText phonetextview = findViewById(R.id.phonetextview);
phone_number = PhoneNumberUtils.formatNumber(phonetextview.getText().toString());

send();

Toast toast = Toast.makeText(getApplicationContext(), phone_number,
Toast.LENGTH_SHORT);
toast.show();

);


private void send()

PhoneAuthProvider.getInstance().verifyPhoneNumber(
phone_number, // Phone number to verify
60, // Timeout duration
TimeUnit.SECONDS, // Unit of timeout
this, // Activity (for callback binding)
mCallbacks); // ForceResendingToken from callbacks




here is the logcat



2019-03-08 15:29:36.095 22108-22108/com.example.meenvandi E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.meenvandi, PID: 22108
java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.example.meenvandi. Make sure to call FirebaseApp.initializeApp(Context) first.
at com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@16.0.1:219)
at com.google.firebase.auth.PhoneAuthProvider.getInstance(Unknown Source:5)
at com.example.meenvandi.LoginActivity.send(LoginActivity.java:96)
at com.example.meenvandi.LoginActivity.access$000(LoginActivity.java:28)
at com.example.meenvandi.LoginActivity$2.onClick(LoginActivity.java:77)
at android.view.View.performClick(View.java:6330)
at android.view.View$PerformClick.run(View.java:25136)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:192)
at android.app.ActivityThread.main(ActivityThread.java:6778)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:875)


2019-03-08 15:29:36.108 22108-22108/com.example.meenvandi I/Process: Sending signal. PID: 22108 SIG: 9



i am getting this error after creating class



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.meenvandi"
tools:ignore="ExtraText">


<uses-permission android:name="android.permission.INTERNET"/>


<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Otp"></activity>
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>


Updated Codes



public class LoginActivity extends AppCompatActivity 

String phone_number;
FirebaseAuth auth;
PhoneAuthProvider.OnVerificationStateChangedCallbacks mCallbacks;


@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);




mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks()


@Override
public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)



@Override
public void onVerificationFailed(FirebaseException e)

e.printStackTrace();

Toast toast = Toast.makeText(getApplicationContext(), (CharSequence) e,
Toast.LENGTH_SHORT);
toast.show();




;


CardView card_view = findViewById(R.id.cardView);

card_view.setOnClickListener(new View.OnClickListener()

@Override
public void onClick(View v)




EditText phonetextview = findViewById(R.id.phonetextview);
phone_number = PhoneNumberUtils.formatNumber(phonetextview.getText().toString());

send();



Toast toast = Toast.makeText(getApplicationContext(), phone_number,
Toast.LENGTH_SHORT);
toast.show();






);



private void send()
FirebaseApp.initializeApp(this);
PhoneAuthProvider.getInstance().verifyPhoneNumber(
phone_number, // Phone number to verify
60, // Timeout duration
TimeUnit.SECONDS, // Unit of timeout
this, // Activity (for callback binding)
mCallbacks); // ForceResendingToken from callbacks







Applicationclass



package com.example.meenvandi;

import android.app.Application;

import com.google.firebase.FirebaseApp;

public class Applicationclass extends Application
@Override
public void onCreate()
super.onCreate();
FirebaseApp.initializeApp(this);//here we are intializing firebase




updated manifest



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.meenvandi"
tools:ignore="ExtraText">


<uses-permission android:name="android.permission.INTERNET"/>


<application
android:name="com.example.meenvandi.Applicationclass"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Otp"></activity>
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>


gradle 1



// Top-level build file where you can add configuration options common to 
all sub-projects/modules.

buildscript
repositories
google()
jcenter()


dependencies
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.google.gms:google-services:4.1.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files



allprojects
repositories
google()
jcenter()




task clean(type: Delete)
delete rootProject.buildDir



gradle 2



apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android
compileSdkVersion 28
defaultConfig
applicationId "com.example.meenvandi"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-auth:16.0.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'










share|improve this question
















I want to get OTP from Firebase to my phone for verification purpose, i have done everything as the documentation says but at the end i am not getting OTP please help me, i know something is wrong with my code anyone can correct me ?
my app is connected and working with firebase here is my activity java code :



still am getting error



public class LoginActivity extends AppCompatActivity 

String phone_number;
FirebaseAuth auth;
PhoneAuthProvider.OnVerificationStateChangedCallbacks mCallbacks;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);

mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks()
@Override
public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)



@Override
public void onVerificationFailed(FirebaseException e)


;

CardView card_view = findViewById(R.id.cardView);
card_view.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View v)
EditText phonetextview = findViewById(R.id.phonetextview);
phone_number = PhoneNumberUtils.formatNumber(phonetextview.getText().toString());

send();

Toast toast = Toast.makeText(getApplicationContext(), phone_number,
Toast.LENGTH_SHORT);
toast.show();

);


private void send()

PhoneAuthProvider.getInstance().verifyPhoneNumber(
phone_number, // Phone number to verify
60, // Timeout duration
TimeUnit.SECONDS, // Unit of timeout
this, // Activity (for callback binding)
mCallbacks); // ForceResendingToken from callbacks




here is the logcat



2019-03-08 15:29:36.095 22108-22108/com.example.meenvandi E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.meenvandi, PID: 22108
java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.example.meenvandi. Make sure to call FirebaseApp.initializeApp(Context) first.
at com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@16.0.1:219)
at com.google.firebase.auth.PhoneAuthProvider.getInstance(Unknown Source:5)
at com.example.meenvandi.LoginActivity.send(LoginActivity.java:96)
at com.example.meenvandi.LoginActivity.access$000(LoginActivity.java:28)
at com.example.meenvandi.LoginActivity$2.onClick(LoginActivity.java:77)
at android.view.View.performClick(View.java:6330)
at android.view.View$PerformClick.run(View.java:25136)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:192)
at android.app.ActivityThread.main(ActivityThread.java:6778)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:875)


2019-03-08 15:29:36.108 22108-22108/com.example.meenvandi I/Process: Sending signal. PID: 22108 SIG: 9



i am getting this error after creating class



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.meenvandi"
tools:ignore="ExtraText">


<uses-permission android:name="android.permission.INTERNET"/>


<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Otp"></activity>
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>


Updated Codes



public class LoginActivity extends AppCompatActivity 

String phone_number;
FirebaseAuth auth;
PhoneAuthProvider.OnVerificationStateChangedCallbacks mCallbacks;


@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);




mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks()


@Override
public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)



@Override
public void onVerificationFailed(FirebaseException e)

e.printStackTrace();

Toast toast = Toast.makeText(getApplicationContext(), (CharSequence) e,
Toast.LENGTH_SHORT);
toast.show();




;


CardView card_view = findViewById(R.id.cardView);

card_view.setOnClickListener(new View.OnClickListener()

@Override
public void onClick(View v)




EditText phonetextview = findViewById(R.id.phonetextview);
phone_number = PhoneNumberUtils.formatNumber(phonetextview.getText().toString());

send();



Toast toast = Toast.makeText(getApplicationContext(), phone_number,
Toast.LENGTH_SHORT);
toast.show();






);



private void send()
FirebaseApp.initializeApp(this);
PhoneAuthProvider.getInstance().verifyPhoneNumber(
phone_number, // Phone number to verify
60, // Timeout duration
TimeUnit.SECONDS, // Unit of timeout
this, // Activity (for callback binding)
mCallbacks); // ForceResendingToken from callbacks







Applicationclass



package com.example.meenvandi;

import android.app.Application;

import com.google.firebase.FirebaseApp;

public class Applicationclass extends Application
@Override
public void onCreate()
super.onCreate();
FirebaseApp.initializeApp(this);//here we are intializing firebase




updated manifest



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.meenvandi"
tools:ignore="ExtraText">


<uses-permission android:name="android.permission.INTERNET"/>


<application
android:name="com.example.meenvandi.Applicationclass"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Otp"></activity>
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>


gradle 1



// Top-level build file where you can add configuration options common to 
all sub-projects/modules.

buildscript
repositories
google()
jcenter()


dependencies
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.google.gms:google-services:4.1.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files



allprojects
repositories
google()
jcenter()




task clean(type: Delete)
delete rootProject.buildDir



gradle 2



apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android
compileSdkVersion 28
defaultConfig
applicationId "com.example.meenvandi"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-auth:16.0.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'







java android firebase firebase-authentication






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 16:34







Jaison

















asked Mar 8 at 13:07









JaisonJaison

35




35












  • what error you are getting?

    – Nouman Ch
    Mar 8 at 13:10











  • try @Override public void onVerificationFailed(FirebaseException e) e.printStackTrace();

    – Nouman Ch
    Mar 8 at 13:11











  • code is proper?

    – Jaison
    Mar 8 at 13:12











  • yes it looks proper.

    – Nouman Ch
    Mar 8 at 13:15











  • then why it is happeining?

    – Jaison
    Mar 8 at 13:27

















  • what error you are getting?

    – Nouman Ch
    Mar 8 at 13:10











  • try @Override public void onVerificationFailed(FirebaseException e) e.printStackTrace();

    – Nouman Ch
    Mar 8 at 13:11











  • code is proper?

    – Jaison
    Mar 8 at 13:12











  • yes it looks proper.

    – Nouman Ch
    Mar 8 at 13:15











  • then why it is happeining?

    – Jaison
    Mar 8 at 13:27
















what error you are getting?

– Nouman Ch
Mar 8 at 13:10





what error you are getting?

– Nouman Ch
Mar 8 at 13:10













try @Override public void onVerificationFailed(FirebaseException e) e.printStackTrace();

– Nouman Ch
Mar 8 at 13:11





try @Override public void onVerificationFailed(FirebaseException e) e.printStackTrace();

– Nouman Ch
Mar 8 at 13:11













code is proper?

– Jaison
Mar 8 at 13:12





code is proper?

– Jaison
Mar 8 at 13:12













yes it looks proper.

– Nouman Ch
Mar 8 at 13:15





yes it looks proper.

– Nouman Ch
Mar 8 at 13:15













then why it is happeining?

– Jaison
Mar 8 at 13:27





then why it is happeining?

– Jaison
Mar 8 at 13:27












2 Answers
2






active

oldest

votes


















1














You need to intialize firebase before using it .For that create one Application class .i.e :



public class MyApplication extends Application 

@Override
public void onCreate()
super.onCreate();
FirebaseApp.initializeApp(this);//here we are intializing firebase




Also don't forget to add this to your AndroidManifest.xml :



<application
android:name="yourPackage.MyApplication"
android:allowBackup="true"
android:icon="@mipmap/route"
android:theme="@style/AppTheme">
<!--your activity classes-->
<activity
android:name=".YourActivity"
>
</application>





share|improve this answer























  • i am getting this error after creating class

    – Jaison
    Mar 8 at 15:54











  • see the screenshot from quiestion

    – Jaison
    Mar 8 at 15:57











  • it should extends Application not LoginActivity ,see my code properly !

    – Swati
    Mar 8 at 15:57











  • i should create new java class with your code thats it right ? i am a newbie

    – Jaison
    Mar 8 at 15:58











  • android:name=".YourActivity" here what should i add ? android:name=".LoginActivity" ?

    – Jaison
    Mar 8 at 16:02


















1














Make sure you are not on emulator and then make sure you have added your valid SHA-1 key to the firebase console.



Try this to check what error you are getting



 @Override 
public void onVerificationFailed(FirebaseException e)
e.printStackTrace();






share|improve this answer

























  • there is one SHA-1 fingerprint in fire-base 52:4e:0c:e9:a0:7a:af:89:23:29:1f:74:31:06:95:2c:f5:99:e0:cb SHA-1

    – Jaison
    Mar 8 at 13:21











  • have you tried the comment?

    – Nouman Ch
    Mar 8 at 14:10











  • ill take log cat and put here , is that ok?@Nouman Ch

    – Jaison
    Mar 8 at 15:02











  • i have added logcat

    – Jaison
    Mar 8 at 15:30











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55063871%2fotp-is-not-getting-from-firebase-code-is-proper%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














You need to intialize firebase before using it .For that create one Application class .i.e :



public class MyApplication extends Application 

@Override
public void onCreate()
super.onCreate();
FirebaseApp.initializeApp(this);//here we are intializing firebase




Also don't forget to add this to your AndroidManifest.xml :



<application
android:name="yourPackage.MyApplication"
android:allowBackup="true"
android:icon="@mipmap/route"
android:theme="@style/AppTheme">
<!--your activity classes-->
<activity
android:name=".YourActivity"
>
</application>





share|improve this answer























  • i am getting this error after creating class

    – Jaison
    Mar 8 at 15:54











  • see the screenshot from quiestion

    – Jaison
    Mar 8 at 15:57











  • it should extends Application not LoginActivity ,see my code properly !

    – Swati
    Mar 8 at 15:57











  • i should create new java class with your code thats it right ? i am a newbie

    – Jaison
    Mar 8 at 15:58











  • android:name=".YourActivity" here what should i add ? android:name=".LoginActivity" ?

    – Jaison
    Mar 8 at 16:02















1














You need to intialize firebase before using it .For that create one Application class .i.e :



public class MyApplication extends Application 

@Override
public void onCreate()
super.onCreate();
FirebaseApp.initializeApp(this);//here we are intializing firebase




Also don't forget to add this to your AndroidManifest.xml :



<application
android:name="yourPackage.MyApplication"
android:allowBackup="true"
android:icon="@mipmap/route"
android:theme="@style/AppTheme">
<!--your activity classes-->
<activity
android:name=".YourActivity"
>
</application>





share|improve this answer























  • i am getting this error after creating class

    – Jaison
    Mar 8 at 15:54











  • see the screenshot from quiestion

    – Jaison
    Mar 8 at 15:57











  • it should extends Application not LoginActivity ,see my code properly !

    – Swati
    Mar 8 at 15:57











  • i should create new java class with your code thats it right ? i am a newbie

    – Jaison
    Mar 8 at 15:58











  • android:name=".YourActivity" here what should i add ? android:name=".LoginActivity" ?

    – Jaison
    Mar 8 at 16:02













1












1








1







You need to intialize firebase before using it .For that create one Application class .i.e :



public class MyApplication extends Application 

@Override
public void onCreate()
super.onCreate();
FirebaseApp.initializeApp(this);//here we are intializing firebase




Also don't forget to add this to your AndroidManifest.xml :



<application
android:name="yourPackage.MyApplication"
android:allowBackup="true"
android:icon="@mipmap/route"
android:theme="@style/AppTheme">
<!--your activity classes-->
<activity
android:name=".YourActivity"
>
</application>





share|improve this answer













You need to intialize firebase before using it .For that create one Application class .i.e :



public class MyApplication extends Application 

@Override
public void onCreate()
super.onCreate();
FirebaseApp.initializeApp(this);//here we are intializing firebase




Also don't forget to add this to your AndroidManifest.xml :



<application
android:name="yourPackage.MyApplication"
android:allowBackup="true"
android:icon="@mipmap/route"
android:theme="@style/AppTheme">
<!--your activity classes-->
<activity
android:name=".YourActivity"
>
</application>






share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 8 at 15:44









SwatiSwati

6821318




6821318












  • i am getting this error after creating class

    – Jaison
    Mar 8 at 15:54











  • see the screenshot from quiestion

    – Jaison
    Mar 8 at 15:57











  • it should extends Application not LoginActivity ,see my code properly !

    – Swati
    Mar 8 at 15:57











  • i should create new java class with your code thats it right ? i am a newbie

    – Jaison
    Mar 8 at 15:58











  • android:name=".YourActivity" here what should i add ? android:name=".LoginActivity" ?

    – Jaison
    Mar 8 at 16:02

















  • i am getting this error after creating class

    – Jaison
    Mar 8 at 15:54











  • see the screenshot from quiestion

    – Jaison
    Mar 8 at 15:57











  • it should extends Application not LoginActivity ,see my code properly !

    – Swati
    Mar 8 at 15:57











  • i should create new java class with your code thats it right ? i am a newbie

    – Jaison
    Mar 8 at 15:58











  • android:name=".YourActivity" here what should i add ? android:name=".LoginActivity" ?

    – Jaison
    Mar 8 at 16:02
















i am getting this error after creating class

– Jaison
Mar 8 at 15:54





i am getting this error after creating class

– Jaison
Mar 8 at 15:54













see the screenshot from quiestion

– Jaison
Mar 8 at 15:57





see the screenshot from quiestion

– Jaison
Mar 8 at 15:57













it should extends Application not LoginActivity ,see my code properly !

– Swati
Mar 8 at 15:57





it should extends Application not LoginActivity ,see my code properly !

– Swati
Mar 8 at 15:57













i should create new java class with your code thats it right ? i am a newbie

– Jaison
Mar 8 at 15:58





i should create new java class with your code thats it right ? i am a newbie

– Jaison
Mar 8 at 15:58













android:name=".YourActivity" here what should i add ? android:name=".LoginActivity" ?

– Jaison
Mar 8 at 16:02





android:name=".YourActivity" here what should i add ? android:name=".LoginActivity" ?

– Jaison
Mar 8 at 16:02













1














Make sure you are not on emulator and then make sure you have added your valid SHA-1 key to the firebase console.



Try this to check what error you are getting



 @Override 
public void onVerificationFailed(FirebaseException e)
e.printStackTrace();






share|improve this answer

























  • there is one SHA-1 fingerprint in fire-base 52:4e:0c:e9:a0:7a:af:89:23:29:1f:74:31:06:95:2c:f5:99:e0:cb SHA-1

    – Jaison
    Mar 8 at 13:21











  • have you tried the comment?

    – Nouman Ch
    Mar 8 at 14:10











  • ill take log cat and put here , is that ok?@Nouman Ch

    – Jaison
    Mar 8 at 15:02











  • i have added logcat

    – Jaison
    Mar 8 at 15:30















1














Make sure you are not on emulator and then make sure you have added your valid SHA-1 key to the firebase console.



Try this to check what error you are getting



 @Override 
public void onVerificationFailed(FirebaseException e)
e.printStackTrace();






share|improve this answer

























  • there is one SHA-1 fingerprint in fire-base 52:4e:0c:e9:a0:7a:af:89:23:29:1f:74:31:06:95:2c:f5:99:e0:cb SHA-1

    – Jaison
    Mar 8 at 13:21











  • have you tried the comment?

    – Nouman Ch
    Mar 8 at 14:10











  • ill take log cat and put here , is that ok?@Nouman Ch

    – Jaison
    Mar 8 at 15:02











  • i have added logcat

    – Jaison
    Mar 8 at 15:30













1












1








1







Make sure you are not on emulator and then make sure you have added your valid SHA-1 key to the firebase console.



Try this to check what error you are getting



 @Override 
public void onVerificationFailed(FirebaseException e)
e.printStackTrace();






share|improve this answer















Make sure you are not on emulator and then make sure you have added your valid SHA-1 key to the firebase console.



Try this to check what error you are getting



 @Override 
public void onVerificationFailed(FirebaseException e)
e.printStackTrace();







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 8 at 14:11

























answered Mar 8 at 13:12









Nouman ChNouman Ch

1,95831426




1,95831426












  • there is one SHA-1 fingerprint in fire-base 52:4e:0c:e9:a0:7a:af:89:23:29:1f:74:31:06:95:2c:f5:99:e0:cb SHA-1

    – Jaison
    Mar 8 at 13:21











  • have you tried the comment?

    – Nouman Ch
    Mar 8 at 14:10











  • ill take log cat and put here , is that ok?@Nouman Ch

    – Jaison
    Mar 8 at 15:02











  • i have added logcat

    – Jaison
    Mar 8 at 15:30

















  • there is one SHA-1 fingerprint in fire-base 52:4e:0c:e9:a0:7a:af:89:23:29:1f:74:31:06:95:2c:f5:99:e0:cb SHA-1

    – Jaison
    Mar 8 at 13:21











  • have you tried the comment?

    – Nouman Ch
    Mar 8 at 14:10











  • ill take log cat and put here , is that ok?@Nouman Ch

    – Jaison
    Mar 8 at 15:02











  • i have added logcat

    – Jaison
    Mar 8 at 15:30
















there is one SHA-1 fingerprint in fire-base 52:4e:0c:e9:a0:7a:af:89:23:29:1f:74:31:06:95:2c:f5:99:e0:cb SHA-1

– Jaison
Mar 8 at 13:21





there is one SHA-1 fingerprint in fire-base 52:4e:0c:e9:a0:7a:af:89:23:29:1f:74:31:06:95:2c:f5:99:e0:cb SHA-1

– Jaison
Mar 8 at 13:21













have you tried the comment?

– Nouman Ch
Mar 8 at 14:10





have you tried the comment?

– Nouman Ch
Mar 8 at 14:10













ill take log cat and put here , is that ok?@Nouman Ch

– Jaison
Mar 8 at 15:02





ill take log cat and put here , is that ok?@Nouman Ch

– Jaison
Mar 8 at 15:02













i have added logcat

– Jaison
Mar 8 at 15:30





i have added logcat

– Jaison
Mar 8 at 15:30

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55063871%2fotp-is-not-getting-from-firebase-code-is-proper%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme