firebase-jetpack | Sample app that shows Firebase | Model View Controller library
kandi X-RAY | firebase-jetpack Summary
kandi X-RAY | firebase-jetpack Summary
Sample app that shows Firebase works well with Android Jetpack architecture components
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of firebase-jetpack
firebase-jetpack Key Features
firebase-jetpack Examples and Code Snippets
Community Discussions
Trending Discussions on firebase-jetpack
QUESTION
I went through Doug Stevenson's solution to pagination for Firestore using Android architecture patterns present at https://github.com/CodingDoug/firebase-jetpack. My concern is that how do I make this work in realtime using Android architecture components.
I attempted a solution which is described as follows but there are some issues with it. I tried to make pagination work in realtime by creating a FirestoreBoundaryCallback
:-
ANSWER
Answered 2018-Nov-26 at 08:01The limitation of the the Paging architecture component is that you can't also get realtime updates at the same time. You have to choose if you want realtime updates or paging. (Or come up with your own solution entirely that doesn't using Paging or LiveData). This is because of the way the Paging component works. It only deals with sets of static data retrieved by paging the one-time queries to the actual data.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install firebase-jetpack
Create a Firebase project
Enable Firestore and Realtime Database
Enable Google auth
Add add an Android app with the package name "com.hyperaware.android.firebasejetpack" and your SHA-1
Download google-services.json and place it in android/app/google-services.json
Download a service account from the console and place it in backend/functions/service-account.json
Initialize the backend code with cd backend/functions; firebase init and attach it to your project
Deploy the backend with firebase deploy
Run node ./lib/tick.js --ticks 1 to bootstrap the database. Run with no args to tick infinitely.
Build and run the Android app to watch stock price changes in real time.
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