[Solved] How can i make the app work offline with Firebase database

Simply activate offline persistens as specified in the official documentation: Firebase applications work even if your app temporarily loses its network connection. You can enable disk persistence with just one line of code: FirebaseDatabase.getInstance().setPersistenceEnabled(true); solved How can i make the app work offline with Firebase database

[Solved] I want to send pictures and messages to users phone numbers without making them install the app. I am using firebase for storage ( swift iOS) [closed]

I want to send pictures and messages to users phone numbers without making them install the app. I am using firebase for storage ( swift iOS) [closed] solved I want to send pictures and messages to users phone numbers without making them install the app. I am using firebase for storage ( swift iOS) [closed]

[Solved] App crashes when registration button is pressed

email and password should not be null or empty String email = mEmail.getText().toString(); String password = mPassword.getText().toString(); if(email.isEmpty() || password.isEmpty()) return; //you need to display message to the user mAuth.createUserWithEmailAndPassword(email, password) .addOnCompleteListener(CustomerLoginActivity.this, new OnCompleteListener<AuthResult>() { … }) solved App crashes when registration button is pressed

[Solved] HOW TO ACCES ALL DOCUMENT FROM SUBCOLLECTION OF ALL DOCUMENT IN PYTHON [closed]

If I understand your post correctly you want to access a specific subcollection of all documents. If so, you are looking for a collection group query, which reads documents from all collections with a specific name. Accessing that in Python is (according to the documentation linked above) done with: museums = db.collection_group(u’landmarks’)\ .where(u’type’, u’==’, u’museum’) … Read more

[Solved] How to resolve method getDownloadUrl() [duplicate]

Try this: filepath.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() { @Override public void onSuccess(Uri uri) { //Do what you need to do with the URL } }).addOnFailureListener(new OnFailureListener() { @Override public void onFailure(@NonNull Exception exception) { // Handle any errors } }); 0 solved How to resolve method getDownloadUrl() [duplicate]

[Solved] how can i get the count of key , value pair in firebase? [closed]

you can count children this way. databaseRef.addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { for (DataSnapshot snap: dataSnapshot.getChildren()) { Log.e(snap.getKey(),snap.getChildrenCount() + “”); } } @Override public void onCancelled(DatabaseError databaseError) { } }); 1 solved how can i get the count of key , value pair in firebase? [closed]

[Solved] how to integrate firebase performance monitoring in Android [closed]

1. Go to project level build.gradle and add buildscript { repositories { jcenter() mavenLocal() google() } dependencies { //Your gradle version example classpath ‘com.android.tools.build:gradle:3.1.3’ //play services plugin example classpath ‘com.google.gms:google-services:3.2.0’ classpath ‘com.google.firebase:firebase-plugins:1.1.5’ // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } 2. App level … Read more

[Solved] Download image from firebase to external sd Card using url [closed]

first of all create database ref and a File like this StorageReference downloadRef = FirebaseStorage.getInstance().getReference().child(“Wall/” + category + “https://stackoverflow.com/” + wall_id + “.jpg”); File localFile = null; try { String fileName = wall_id + “.jpg”; localFile = new File();//create your file with desired path } catch (Exception e) { e.printStackTrace(); } than call getFile on … Read more

[Solved] save text message in Shared Preferences [duplicate]

I don’t see why you would like to do that, but sure. If saving to SharedPrefs is all you want, it’s quite straight forward SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE); SharedPreferences.Editor editor = sharedPref.edit(); editor.putString(“yourMessageKey”, message); editor.commit(); And of course, to read it back you SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE); String message = sharedPref.getString(“yourMessageKey”, defaultValue); 2 solved save … Read more

[Solved] How to start building a cross platform app? [closed]

React Native is a great place to start. With today’s ecosystem lead by flutter and react, Angular has unfortunately fallen behind. Both, Cloud functions are Firebase’s solution to server instances, these create short-lived functions that do complex or secure tasks such as handle payments, delete/manage users, etc. While the bulk of your app and its … Read more

[Solved] How to get specific document data from firebase and return as a string

It works for me Widget build(BuildContext context) { return new StreamBuilder( stream: Firestore.instance.collection(‘COLLECTION_NAME’).document(‘TEST’).snapshots(), builder: (context, snapshot) { if (!snapshot.hasData) { return Center(child: CircularProgressIndicator()); } var userDocument = snapshot.data; return new Text(userDocument[“property_name”]); } ); } 1 solved How to get specific document data from firebase and return as a string

[Solved] Retrieving location every 5 seconds

In a nutshell: LocationRequest locationrequest = LocationRequest.create(); locationrequest.setInterval(5000); // 5 seconds LocationClient locationclient = new LocationClient(this, this, this); locationclient.requestLocationUpdates(locationrequest, this); https://developer.android.com/training/location/index.html In this link, it is suggested that you use the new Google Play services location APIs. But they have the same idea. solved Retrieving location every 5 seconds