FireNotes | Fully Featured Android Note Taking App with Firebase | Authentication library
kandi X-RAY | FireNotes Summary
kandi X-RAY | FireNotes Summary
Hello Everyone, Welcome to New Video Series on Android Note Taking App Tutorial With Firebase, in this series, we are going to build a note-taking application from start to finish and publish on google play store. The Final App looks like as shown in the Intro video: Full Playlist:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize the firestore
- Gets the title
- Gets the text content
- Invoked when a navigation item is selected
- Check user
- Display Alert dialog
- Sets the value of the card to the given position and content
- Get a random color
- Create a new account
- Initializes the note
- Initializes the add note
- Initializes the edit note
- Initialize the UI
- Override onCreateOptions menu
- Override this method to show a back button
- Callback when an item is selected
- On createOptions menu
- Override this method to show a settings menu item
- Called when the note adapter starts
- On stop listening
- Invoked when the note view is created
- Override this to interact with backPressed items
- Returns count of items in the list
FireNotes Key Features
FireNotes Examples and Code Snippets
Community Discussions
Trending Discussions on FireNotes
QUESTION
I am working on a modest SPA that (will) use Firebase for Authorization and Firestore for the DB and Flask on the backend (It's not strictly a true SPA because things like contact page, terms, etc are on different pages). I have gone through tutorials such as Firenotes doc tutorial, and it looks like because it is a JWT instead of a session I have to authenticate with every request.
Question(s):
Is it considered best practice to validate on every request or should I log the user in and then store a session?
Even if I store the user in a session, I would still need to authenticate their JWT on any database call, so there is no uplift there is there?
Is there any concern about cloud costs with either approach?
ANSWER
Answered 2021-May-16 at 14:49Firebase's own services:
- Pass the ID token from the client to the server with every request,
- Decode the token when they first receive it, and then
- Either cache the decoded token or cache the key pair that was used to decode it, since that step is most time-consuming.
So while there may be other approaches to accomplish your use-case, I'd say the above is quite tried and proven.
QUESTION
I am trying Firebase to authenticate users for a website that was initially built on Flask (using the flask login workflow with a postgres DB). However, I am not sure that I have a correct understanding of what would be considered best practices when using Firebase.
I read through this article, which I think has led me down a suboptimal path when it comes to actually managing users.
My questions are:
- Should all the Firebase authentication be handled in the javascript?
- If so, should I use the
request.headers
on the backend to verify the identity of the user?
Any tutorials (aside from the Firenotes one, which I am working through) much appreciated.
...ANSWER
Answered 2020-Nov-25 at 15:53Should all the Firebase authentication be handled in the javascript?
No, it doesn't have to be JavaScript. But in general, you'll find that most apps using one of the existing Firebase Authentication providers handle the sign-in of the user in their client-side code, with calls to the authentication server.
If so, should I use the request.headers on the backend to verify the identity of the user?
When calling REST APIs Firebase itself passes the ID token of the authenticated user in the Authorization
header, so that's a valid approach indeed. On the server you can then verify that the ID token is valid, and decide what data this user has access to.
QUESTION
I followed the tutorial (https://cloud.google.com/appengine/docs/standard/python/authenticating-users-firebase-appengine) for adding Firebase to a Google App Engine project. However, the UI buttons are not showing up; someone on Youtube did the tutorial for Node.JS and the UI buttons worked. This is what I see after following the guide:
It says Sign in, but nothing shows.
HTML
...ANSWER
Answered 2020-Feb-27 at 16:49I'm adding @DanCornilescu's comment as answer as it solved the issue:
You are already signed in. Click on the Sign out button. The example isn't that great IMHO - too tied for the notes app, changes are needed to make it work in a more generic manner.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install FireNotes
You can use FireNotes like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the FireNotes component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page