Hello @wedad gamal ,
Firebase.Auth.Auth.DefaultInstance
being Null
indicates an issue configuring the Firebase SDK in the app. Try to check if you forget to import Firebase.Core
namespace in AppDelegate
(sometimes build without error if you don't add this namespace).
You can use Firebase Authentication to allow users to sign in to your app using one or more sign-in methods, including email address and password sign-in, and federated identity providers such as Google Sign-in and Facebook Login. But this line of code await Firebase.Auth.Auth.DefaultInstance.CreateUserAsync(email, password);
means you are using email address and password sign-in. You may also need to send a user a verification email. For more details, refer to https://github.com/xamarin/GoogleApisForiOSComponents/blob/main/docs/Firebase/Auth/GettingStarted.md
About your first and second issue, it is related to Manual provisioning for Xamarin.iOS, go to Tools -> Options->Xamarin ->Apple Account, choose your Apple ID, click View Details to check your certificates and profiles.
Automatic Provisioning is also a great choice(your third step).
In addition, you could check if your VS(Windows and Mac) and Xcode need to be updated.
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.