problem with Firebase authentication check (Number phone)

0

Hello! I am trying to build a firebase record with phone number. I did the procedures I found in:

link

But I'm having trouble.

Error message :

  

com.google.firebase.auth.FirebaseAuthException: This app is not   authorized to use Firebase Authentication. Please verifythat the   correct package name and SHA-1 are configured in the Firebase Console.   [App validation failed]

The SHA-1 and package name are correct in the firebase console and in the Identify Toolkit API. maybe the problem is in the manifest that I could not understand very well how to configure ...

My manifesto:

<?xml version="1.0" encoding="utf-8"?>

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

<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">

    <meta-data
        android:name="identitytoolkit.api_key"
        android:value="AIzaSyCYvSvfgFPrbTDbbj-AscV53jIK8ZCx0tE"/>

    <meta-data
        android:name="identitytoolkit.server_client_id"
        android:value="409706134960-vq0j4i1kucsstamvhs1j4ruohdg10p2r.apps.googleusercontent.com"/>

    <!-- Splash screen -->
    <activity
        android:name=".SplashScreenActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:theme="@style/Theme.AppCompat.Light.NoActionBar" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />

            <data
                android:host="gitkit"
                android:scheme="com.googleusercontent.apps.409706134960-vq0j4i1kucsstamvhs1j4ruohdg10p2r" />
        </intent-filter>
    </activity>
    <!-- Fim do Splash Screen -->

    <!-- Main Activity -->
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:theme="@style/Theme.AppCompat.Light.NoActionBar">
    </activity>
    <!-- Fim do Main Activity -->
</application>

    
asked by anonymous 02.10.2017 / 18:37

0 answers