🗄️ Databases Help firebase

PHC_Shion

Forum Veteran
Help paano kopo i retrieve dito yung current user information, using firebase 3.7.2 and C# xamarin forms
Screenshot_20230501-174248.webp
 
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

About this Thread

  • 6
    Replies
  • 598
    Views
  • 4
    Participants
Last reply from:
PHC - ShadowX

Trending Topics

Online now

Members online
431
Guests online
1,036
Total visitors
1,467

Forum statistics

Threads
2,268,876
Posts
28,924,903
Members
1,243,131
Latest member
ronaldk
Back
Top