Skip to main content

Using FireBase and AdMob in android application || How to use google Admob and google firebase

Using FireBase and AdMob

FireBase :- Firebase helps you build better mobile apps.

 

FireBase Is :-
Firebase is a technology that permits you to make web applications with no server-side programming so that development turns out to be quicker and easier. With Firebase,  we don't have to stress over-provisioning servers or building REST APIs with just a little bit of configuration; we can give Firebase a chance to take every necessary step: storing data, verifying users, and implementing access rules. 

Use/Need Of FireBase :-
The great thing about Firebase is how easy it is to deploy multiple services in an app, and how those services can work together. Easy configuration and implementation of building blocks like real-time storage, crash reporting, and authentication can take weeks off an app's time to market. 

Benifits Of FireBase :-
Firebase Real-time Database 
Firebase Authantication 
Firebase Storage 
Firebase Crash Report 
Firebase App Indexing 
Firebase Analytics 
Firebase Test Lab for Android 
Firebase Cloud Messaging 
Firebase Notification 
Firebase Remote Configure 

Getting Started With Firebase using Firebase Authantication 

Step 1. Configure Your Project

To be able to use Firebase Auth in your Android Studio project, you must add the following compile dependency to the app module's build.gradle file. 

Step 2. Enable Password-Based Authentication
By default, Firebase doesn't allow user authentication. Therefore, you must manually enable password-based user authentication in the Firebase console. To do so, navigate to the Auth section, and press the Set up sign-in method button 

Step 3. Support User Registration
With password-based authentication, new users must register themselves by providing a unique email address and a password. 

Step 4. Support User Sign-In
After a successful registration, the user is automatically signed in. The user will continue to stay signed in even if your app restarts. Nevertheless, your app must include code that allows users to manually sign in using the email address and password they specified during the registration process.

Step 5. Support User Sign-Out
To sign a user out, you can simply call the signOut() method of the FirebaseAuth class. 

Getting Started With Firebase  Using Firebase's Real-Time Database


Step 1: Configure Your Project 

Before you use the real-time database, you'll have to add the following compile dependency to your app module's build.gradle file. 

Step 2: Write Data
You can think of the real-time database as a JSON object. That means you can add key-value pairs to it, where the keys are always strings, and the values are either primitives, arrays, or other JSON objects.

Step 3: Read Data
In order to read a value from the real-time database, you must attach an asynchronous observer to the associated key or path. More precisely, you must attach a ValueEventListener to a DatabaseReference object using the addValueEventListener() method. 

AdMob:-

AdMob by Google is an easy way to monetize mobile apps with targeted, in-app advertising.
AdMob by Google is a mobile advertising platform that you can use to generate revenue from your app. Using AdMob with Google Analytics for Firebase provides you with additional app usage data and analytics capabilities. Firebase integrates with AdMob without requiring changes to your existing AdMob configuration. 

Working Of AdMob:-
Admob by Google helps you monetize your mobile app through in-app advertising. Ads can be displayed as banner ads, interstitial ads, video ads, or native ads — which are seamlessly added to platform native UI components. On Android, you can additionally display in-app purchase ads, which allow users to purchase advertised products from within your app.

Before you can display ads within your app, you'll need to create an AdMob account and activate one or more Ad Unit IDs. This is a unique identifier for the places in your app where ads are displayed. If you are already using AdMob in your app, all of your existing Ad Unit IDs continue to work after you've added Firebase to your app. 
AdMob uses the Google Mobile Ads SDK. The Google Mobile Ads SDK helps app developers gain insights about their users, drive more in-app purchases, and maximize ad revenue. In order to do so, the default integration of the Mobile Ads SDK collects information such as device information, publisher-provided location information, and general in-app purchase information such as item purchase price and currency. 

Admob With FireBase:-

Firebase is a mobile platform that helps you quickly develop high-quality apps, grow an engaged user base, and earn more money. Since AdMob is now a part of Firebase, we've made it simpler to use AdMob along with other Firebase services such as Analytics. 
While this is a significant step forward for AdMob, publishers can rest assured that the package names, classes, prefixes, and method signatures comprising the Google Mobile Ads SDK have stayed the same. App publishers with existing codebases only need to add the Firebase library and a Google services config file to their Android or iOS app in order to integrate with Firebase. 


Comments

Popular posts from this blog

Comparison between MediaTek Helio G90T and Snapdragon 665 || MediaTek Helio G90T vs Snapdragon 665 Processors

MediaTek Helio G90T vs Snapdragon 665 Processors In this article we are going compare two powerful processors MediaTek Helio G90T and Snapdragon 665 so lets get started. Both MediaTek Helio G90T and Snapdragon 665 are powerful mid-range processor by their respective manufactures. The brand new smartphone Redmi note 8 pro from Xiaomi uses MediaTek Helio G90T chipset and Redmi Note 8 also from xiaomi uses Snapdragon 665 chipset. CPU:- MediaTek Helio G90T uses  Octa-core (2x 2.05 GHz Cortex-A76 6x 2.0 GHz Cortex-A55 2.0 GHz) CPU where Snapdragon 665 uses  Octa-core (4x2.0 GHz Kryo 260 Gold (A73) & 4x1.8 GHz Kryo 260 Silver (A53)) CPU. Here CPU of MediaTek Helio G90T looks more efficient and powerful than Snapdragon 665 CPU GPU:- MediaTek Helio G90T chipset comes with  Mali-G76 3EEMC4 @800 MHz, HyperEngine, Quad-Core GPU which supports company’s Hyper Vision Gaming technology for better and enhanced gaming experience. where Snapdragon 665 has  Ad

How to develop android applications || Best Ways To Develop Android Applications

Best Ways To Develop Android Applications Many programmers will tell you that some of the biggest mistakes they’ve made have been through trial and error. It’s true— development is a skill that takes time and practice. As Android developers improve their skills over time, they’ll make fewer and fewer mistakes, leading to cleaner code, software that performs better, and fewer bugs. It’s all part of the learning curve. However, even an experienced developer can benefit from reviewing some of the best practices that Google lays out for Android projects. To help you start your Android app project off on the right foot, here are a few tips and best practices to consider. LEARN XML AND JAVA Extensible markup language (XML) is a markup language that’s the foundation for the Android user interface (UI) and elements. Java is the back end coding language platform, and its used with binding functionality with your XML layout. For developers used to binding elements even in we