Heero Yuy
Heero Yuy

Reputation: 614

Android Firebase Authentication

 mAuth!!.createUserWithEmailAndPassword(email,password)
            .addOnCompleteListener(this){ task ->

                if (task.isSuccessful){
                    Toast.makeText(applicationContext,"Successful login",Toast.LENGTH_LONG).show()

                    var currentUser =mAuth!!.currentUser
                    //save in database
                    if(currentUser!=null) {
                        myRef.child("Users").child(SplitString(currentUser.email.toString())).child("Request").setValue(currentUser.uid)
                    }

                    LoadMain()

                }else
                {
                    Toast.makeText(applicationContext,"fail login",Toast.LENGTH_LONG).show()
                }

            }

I get "developer warning for package 'com.example.package' Failed to post notification on channel 'null' See log for more details"

In the log

    DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
GooglePlayServicesUtil: Google Play services out of date.  Requires 11020000 but found 10932470
Notification: Use of stream types is deprecated for operations other than volume control
Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case

I have

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:26.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.firebase:firebase-core:11.2.0'
compile 'com.google.firebase:firebase-auth:11.2.0'
compile 'com.google.firebase:firebase-database:11.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.0'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.0'

}

in build.gradle

I've been lookin at this https://developer.android.com/guide/topics/ui/notifiers/notifications.html#ManageChannels, but I don't know how to work on this

Upvotes: 1

Views: 628

Answers (2)

vikas kumar
vikas kumar

Reputation: 11018

For Oreo Copatability you must use channels and group them to run on Oreo (android O) otherwise your notifications will be dropped. Use this link to Learn more about channels in Android O link

medium link

Read about android O changes here

Upvotes: 0

Umar Hussain
Umar Hussain

Reputation: 3527

your version of play services is old. use latest google play services in gradle:

dependencies {
        compile 'com.google.android.gms:play-services:11.2.0'
    }

Upvotes: 1

Related Questions