Help paano kopo i retrieve dito yung current user information, using firebase 3.7.2 and C# xamarin forms
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
FirebaseApp.InitializeApp
method and passing in your Firebase configuration.FirebaseAuth.Instance.CurrentUser
property, which returns a FirebaseUser
object representing the current user.FirebaseUser
object to get information about the current user, such as Uid
, Email
, DisplayName
, etc.using Firebase.Auth;
// Initialize Firebase app
var config = new FirebaseConfig("<your-firebase-config>");
FirebaseApp.InitializeApp(config);
// Retrieve current user information
FirebaseUser currentUser = FirebaseAuth.Instance.CurrentUser;
if (currentUser != null) {
// User is signed in
string uid = currentUser.Uid;
string email = currentUser.Email;
string displayName = currentUser.DisplayName;
// ...
} else {
// No user is signed in
}
<your-firebase-config>
with your own Firebase configuration.Wala pa po kasi idea dyan, nagpractice palang po ditoBruv ask ko lang if naexplore mo na flutterflow, you might check it. Been using it for App dev. It uses Dart language (flutter) and firebase connection.
Siguro mas okay nayan na hardcoded paggawa mo ng app. In Flutterflow kase basically its just drag and drop na. And complete na sourcecode doon once you finished. May access karin sa sourcecode etc.Wala pa po kasi idea dyan, nagpractice palang po dito