skip to Main Content

Email update in Firebase Authentication – Kotlin

I want the user to be able to update their email address from within the app. I wrote the following code to update email in Firebase Authentication. val user = firebaseUser.currentUser!! val credential = EmailAuthProvider .getCredential(currentEmail, currentPassword) user.reauthenticate(credential) .addOnCompleteListener {…

VIEW QUESTION

Android Studio – POST_NOTIFICATIONS request doesn't work, dialog box not showing

In manifest: <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> In Activity: if (Build.VERSION.SDK_INT >= 33) { if (ContextCompat.checkSelfPermission(this, Manifest.permission.POST_NOTIFICATIONS) != PackageManager.PERMISSION_GRANTED) { ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.POST_NOTIFICATIONS},1); } else { // } } In the build.gradle file the targetSdkVersion is 34 I have other permission requests like…

VIEW QUESTION
Back To Top
Search