Reputation: 31
Error while trying to send an account verification email with a dynamic link attached. Appeared after updating Google Services to version 14.3.66
firebaseAuth.createUserWithEmailAndPassword(login, pass)
val settings = ActionCodeSettings.newBuilder()
.setHandleCodeInApp(false)
.setUrl(BuildConfig.DEEP_LINK)
.build()
user.sendEmailVerification(settings)
An internal error has occurred. [ MISSING_ANDROID_PACKAGE_NAME:Cannot install Android app without providing package name ]
Upvotes: 1
Views: 319
Reputation: 12681
You need to set the Android package name in code:
val settings = ActionCodeSettings.newBuilder()
.setHandleCodeInApp(false)
.setAndroidPackageName("com.package.my", true, "1")
.setUrl(BuildConfig.DEEP_LINK)
.build();
Upvotes: 0