Package: sjfirebase
sj-firebase-pythonImplement Firebase Java SDK in PythonFirebaseMake your app the
best it can beFirebase is an app development platform that helps you build and grow apps and games users love.
Backed by Google and trusted by millions of businesses around the world.UsageBuildozer Android projectandroid.gradle_dependencies=io.github.simplejnius:sjfirebase:0.3.0requirements=https://github.com/SimpleJnius/sj-firebase-python/archive/refs/heads/master.zipThe current version ofpython-for-androidlacks support for incorporating bom dependencies, modifying the classpath, and copying thegoogle-service.json.
To address this limitation, a fork of python-for-android has been developed to include these functionalities.
To implement these changes in yourbuildozer.specfile,
make adjustments to the specified section using the provided values below:android.api=34android.enable_androidx=Trueandroid.gradle_dependencies=io.github.simplejnius:sjfirebase:1.0.0,com.google.firebase:firebase-auth,com.google.firebase:firebase-database,com.google.firebase:firebase-firestore,com.google.firebase:firebase-storage,com.google.firebase:firebase-analyticsp4a.fork=SimpleJniusp4a.branch=firebaseImportant Note:Upon creating an Android project within yourFirebase Console,
ensure to transfer thegoogle-service.jsonfile to the same location as yourmain.pyfile.Python(Buildozer) installation# pippipinstallsjfirebase# buildozer.specrequirements=sjfirebasePython APIActionCodeSettingsclasssjfirebase.jclass.action.ActionCodeSettingsStructure that contains the required continue/state URL with optional Android and iOS bundle identifiers.
The stateUrl used to initialize this class is the link/deep link/fallback url used while constructing the
Firebase dynamic link.methodsnewBuilderVisitActionCodeSettings Documentationfor more APISJFirebaseAuthEmaiclasssjfirebase.jclass.auth.SJFirebaseAuthEmaiThe entry point of the Firebase Authentication SDK.
First, obtain an instance of this class by callingget_instancemethodscheck_user_signed_inget_instanceVisitFirebaseAuth Documentationfor more APISJFirebaseDatabaseclasssjfirebase.jclass.database.SJFirebaseDatabaseThe entry point for accessing a Firebase Database.
You can get an instance by calling getInstance.
To access a location in the database and read or write data, useget_refmethodsget_dbget_refVisitFirebaseDatabase Documentationfor more APISJFirebaseFirestoreclasssjfirebase.jclass.firestore.SJFirebaseFirestoremethodsget_dbVisitFirebaseFirestore Documentationfor more APISJFirebaseUserclasssjfirebase.jclass.user.SJFirebaseUserRepresents a user's profile information in your Firebase project's user database.
It also contains helper methods to change or retrieve profile information,
as well as to manage that user's authentication state.methodsget_current_userprofile_change_request_builderVisitFirebaseUser Documentationfor more APISJFirebaseStorageclasssjfirebase.jclass.user.SJFirebaseStorageFirebaseStorage is a service that supports uploading and downloading large objects
to Google Cloud Storage. Pass a custom instance of FirebaseApp to get_instance which
will initialize it with a storage location (bucket) specified via setStorageBucket.Otherwise, if you call getReference without a FirebaseApp, the FirebaseStorage instance
will initialize with the default FirebaseApp obtainable from get_instance. The storage
location in this case will come the JSON configuration file downloaded from the webmethodsget_instanceVisitFirebaseStorage Documentationfor more APIOnCompleteListenerclasssjfirebase.jinterface.googleOnCompleteListenerListener called when a Task completes.methodsonCompleteVisitOnCompleteListener Documentationfor more APIValueEventListenerclasssjfirebase.jinterface.firebase.ValueEventListenermethodsonDataChangeonCancelledVisitValueEventListener Documentationfor more API