What's new

Databases Help firebase

shion_

Eternal Poster
Established
Joined
Apr 28, 2016
Posts
1,171
Reaction
380
Points
462
Help paano kopo i retrieve dito yung current user information, using firebase 3.7.2 and C# xamarin forms
Screenshot_20230501-174248.jpg
 

Attachments

To retrieve the current user information using Firebase 3.7.2 and C# in Xamarin Forms, you can use the following steps:

1. First, create an instance of Firebase Authentication in your project by adding the Firebase Authentication NuGet package to your project.

2. Then, initialize the Firebase app in your code by calling the FirebaseApp.InitializeApp method and passing in your Firebase configuration.

3. To retrieve the current user information, call the FirebaseAuth.Instance.CurrentUser property, which returns a FirebaseUser object representing the current user.

4. You can then access various properties of the FirebaseUser object to get information about the current user, such as Uid, Email, DisplayName, etc.

Here is an example code snippet that demonstrates how to retrieve the current user information using Firebase Authentication in C# Xamarin Forms:

Code:
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
}

Make sure to replace <your-firebase-config> with your own Firebase configuration.
 
Bruv 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.
 
Wala pa po kasi idea dyan, nagpractice palang po dito
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.

But since you’ve already created your UI firebase setup nalang kulang mo and CRUD. Medyo maproseso manual retrieval kay firebase but there’s a lot of tuts in yt or from stacksoverflow. Goodluck sayo TS, I’m also currently working on app dev now.
 

Similar threads

Back
Top