You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a new user signed into my app the "isNewUser" is only true when they have signed in using email or Google providers, both Microsoft and Twitter it is always false.
Steps to reproduce:
I have tried this on Samsung phone run from Android Studio and from an app submitted into Play Store on my Sony mobile device with the same result for both devices.
if (requestCode == SIGNIN) {
val response = IdpResponse.fromResultIntent(data)
if (resultCode == Activity.RESULT_OK) {
if (response == null) {
finish()
return
}
if (response.isNewUser) {
Toast.makeText(
this,
"You are a new user",
Toast.LENGTH_LONG
).show()
registerNewUser()
} else {
Toast.makeText(
this,
"You are an existing user",
Toast.LENGTH_LONG
).show()
checkAdmin()
}
The text was updated successfully, but these errors were encountered:
Android
Step 2: Describe your environment
Android device: Sony ZX3
Android OS version: 9
Google Play Services version: 20.1.04
Firebase/Play Services SDK version:
com.google.firebase:firebase-auth:19.2.0
com.google.gms:google-services:4.3.3
FirebaseUI version: com.google.firebase:firebase-auth:19.2.0
Step 3: Describe the problem:
After a new user signed into my app the "isNewUser" is only true when they have signed in using email or Google providers, both Microsoft and Twitter it is always false.
Steps to reproduce:
I have tried this on Samsung phone run from Android Studio and from an app submitted into Play Store on my Sony mobile device with the same result for both devices.
Relevant Code:
Start Sign In:
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
The text was updated successfully, but these errors were encountered: