Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app.
react-native-fcm: https://github.com/evollu/react-native-fcm
with a Reference, you can receive data from a Query by using the on() method.
There are actually 4 different ordering functions:
orderByKey()
orderByChild(‘child’)
orderByValue()
Advance querying function to further restrict data
equalTo(‘child_key’)
Const db = firebase.database();
Const firebaseRef = db.child(‘user’);
firebaseRef.orderByChild("user").equalTo("Aditya").on("child_added", function(snapshot) {
console.log(snapshot.key);
});
firebaseRef.orderByKey().limitToFirst(10);
In SQL, the basics of querying involves two steps:
SELECT * FROM Users where Name == ‘Aditya’;
In firebase , basics of querying also follow two steps:
SELECT * FROM User LIMIT 10;
var storageRef = firebase.storage.ref("folderName/file.jpg");
var fileUpload = document.getElementById("fileUpload");
fileUpload.on(‘change’, function(evt) {
var firstFile = evt.target.file[0]; // get the first file uploaded
var uploadTask = storageRef.put(firstFile);
});
While making apps in my college years I always used to fiddle with the screen size for different devices.Firebase test labs provide a large number of mobile test devices for this purpose.
We have Three different modes of testing
1)Instrumentation tests:
These are tests that you have written specifically to test your app, using the Espresso and UI Automator 2.0 Android test frameworks
2)Robo test:
These are for people like me who wants to relax and let the software do its job.It simulates user touch and sees how each part is functioning.
3)Game Loop test:
To support game app testing, Test Lab now includes beta support for using a "demo mode" where the game app runs while simulating the actions of a player.
Remote config essentially allows us to publish updates to our users immediately. Whether we wish to change the colour scheme for a screen, the layout for a particular section in our app or show promotional/seasonal options — this is completely doable using the server side parameters without the need to publish a new version.
Remote Config gives us the power to:
To get your app's content indexed by Google, use the same URLs in your app that you use on your website and verify that you own both your app and your website. Google Search crawls the links on your website and serves them in Search results. Then, users who've installed your app on their devices go directly to the content in your app when they click on a link.
Deep Link
A deep link is a link that takes you to content. Most web links are deep links.
Dynamic Links
A modification of Deep links which are used in apps.These links allow the user to directly come to a particular location in your app.
There are 3 fundamental uses of the dynamic link.
1)Convert mobile web users to native app users
2) Increase conversion for user-to-user sharing
To convert users when your app is shared with other users you can skip the generic message which is shown when a user downloads it from the store.Instead, you can show them personalized greeting message.
3)Drive installs from the Third party
Social media, email and Sms can be used to increase your target audience.When users install they see the exact content of your campaigns
Choose a Database: Cloud Firestore or Realtime Database
var citiesRef = db.collection("cities");
var query = citiesRef.where("capital", "==", true);
citiesRef.where("population", ">", 100000).orderBy("population").limit(2)
var citiesRef = db.collection("cities");
citiesRef.orderBy("population").startAt(1000000)
Robo scripts
With Robo scripts, you record yourself walking through a workflow in your app, then upload that recording to the Firebase console to run in Robo tests. When you run a Robo test with a script attached, Robo first steps through your pre-scripted actions then proceeds to explore the app as usual.
Firebase Predictions
Firebase Predictions applies machine learning to your analytics data to create dynamic user groups based on your users' predicted behaviour.
A/B Testing
A/B testing can help you find the optimal wording and presentation by testing message variants on selected portions of your user base. Whether your goal is better retention or conversion on an offer, A/B testing can perform statistical analysis to determine if a message variant is outperforming the control group for your selected objective.