I am trying to make Firebase Unity SDK work on iOS 13 device. I was able to build the project, but the issue is I am not able sign up or authenticate user.
Steps to Reproduce: (What I did)
- Downloaded quickstart-unity/auth/testapp project
- Opened in Unity 2019.2.20f1 with iOS platform
- Changed Bundle ID to the one I have registered in Firebase Console
- Put GoogleService-Info.plist under Assets/Firebase folder
- Set Resolver iOS settings option Add CocoaPods to the Xcode project
- Imported the latest Firebase Auth package 6.10.0 from dotnet4 folder to the project
- Did build
What I see in Xcode project:
- PodFile content looks like this:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
target 'Unity-iPhone' do
pod 'Firebase/Auth', '6.14.0'
pod 'Firebase/Core', '6.14.0'
end
- GoogleService-Info.plist is in Xcode project hierarchy too
Signed and build on my iPhone 8 with iOS 13.
Result: When I try to fill fields email and password and push button "Create User" which calls the method:
// Create a user with the email and password.
public Task CreateUserWithEmailAsync() {
DebugLog(String.Format("Attempting to create user {0}...", email));
DisableUI();
// This passes the current displayName through to HandleCreateUserAsync
// so that it can be passed to UpdateUserProfile(). displayName will be
// reset by AuthStateChanged() when the new user is created and signed in.
string newDisplayName = displayName;
return auth.CreateUserWithEmailAndPasswordAsync(email, password)
.ContinueWithOnMainThread((task) => {
EnableUI();
if (LogTaskCompletion(task, "User Creation")) {
var user = task.Result;
DisplayDetailedUserInfo(user, 1);
return UpdateUserProfileAsync(newDisplayName: newDisplayName);
}
return task;
}).Unwrap();
}
I see this error on device screen and in Xcode logs too:
AuthError.Failure: Firebase.FirebaseException: An internal error has occurred, print and inspect the error details for more information.
Here is full log from Xcode:
https://drive.google.com/file/d/1ZQzrA67NXqM-lwNsSqT8Dgam9XiSHD9y/view?usp=sharing
Also I tried to do:
- Build on device with lower iOS version.
- Tried to build with Unity 2019.1.11 and 2019.1.13 versions
- Tried to import GoogleService-Info.plist directly to Xcode project
- Tried Firebase SDK 6.8.0 version
- Tried to add [FIRApp configure] manually
- Nothing worked.
Firebase console configured for project and contains two apps android and iOS with different Bundle IDs. Android version works perfect tested many time.
Unity editor version: 2019.2.20f1
Firebase Unity SDK version: 6.10.0
Firebase plugins in use: Auth
Additional SDKs we are using (Facebook, AdMob, etc.): None
Platform we are using the Unity editor on: Mac
Platform we are targeting: iOS
Scripting Runtime: IL2CPP
Xcode version: 11 (the latest)
CocoaPods: The latest version
