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

Android Pie update all new features Digital Well-being, Battery Optimization, new gestures

Android's new update Android Pie new features Google has just released the final and stable version of android 9.0 "Pie". Google has finally named this update as "Pie" after so much debate. Android Pie rolls out today to Google's own Pixel phones.As for when the update will hit other Android phones, that's a giant question mark as always. Google says devices that were a part of the developer preview program—those from Sony, Xiaomi, Oppo, OnePlus, Essential, and more—along with some Android One phones, will get the new software in the fall. Others will get the new OS sometime "this year." Whenever Android Pie shows up on your phone, here are five new things to look for.  There are some awesome specifications that need to be highlighted. Such as following. Awesome Gesture In android's new update, three navigation buttons are replaced by a single pilled shaped navigating button. by long pressing that button will pop-ups googl...

Kotlin as New Language to Develop Android applications || An alternative programming language to Java || New programming language to develop android application

Kotlin as New Language to Develop Android applications Kotlin is expressive, concise, extensible, powerful, and a joy to read and write. It has wonderful safety features in terms of null ability and immutability, which aligns with our investments to make Android apps healthy and performance by default. Best of all, it's inter operable with our existing Android languages and run time. So we're thrilled to make Kotlin an official language on Android. If you're interested in using Kotlin, it's easy to get started because it works side by side with Java and C++ on Android. So you can keep your existing code, continue to use the various Android libraries, and incrementally add Kotlin code to your project. Unlike almost any other language, Kotlin is a drop-in replacement you can use bi-bidirectionally—you can call into the Java language from Kotlin, and you can call into Kotlin from the Java language.  IDE support is also crucial, and android studio have it. Android...