Maximizing Earnings with Flexible Work as a Remote Customer Service Live Chat Assistant

With the advent of technology, the way we work has changed drastically over the years. Nowadays, it is possible to work remotely from the comfort of your own home. One of the most popular remote jobs…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Firebase friendlychat

Hello amigos!

Firebase Android

2. Then import the starter app, from android studio select android-start directory

3. Then go to the firebase console

4. Select Create New Project and name your project FriendlyChat

5. After that from the overview screen of your new project, click add firebase to your android app

6. Enter the codelab’s package name :

7. Enter the SHA1, use the command to find the SHA1 hash :

8. Then run the starter app

10. Select Authentication

11. Select the Sign In Method tab

12. Toggle the Google switch to enabled (blue)

13. Press Save on the resulting dialog

14. Add a coding to app/build.gradle

15. Then add this too on MainActivity.java

16. Then add the following to put this code on onCreate

17. Then on SignInActivity.java

a.

b.

c.

e. @Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);

f. private void firebaseAuthWithGoogle(GoogleSignInAccount acct) {
Log.d(TAG, "firebaseAuthWithGooogle:" + acct.getId());
AuthCredential credential = GoogleAuthProvider.getCredential(acct.getIdToken(), null);
mFirebaseAuth.signInWithCredential(credential)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
Log.d(TAG, "signInWithCredential:onComplete:" + task.isSuccessful());

READ MESSAGES

Dependency in app/build.gradle

Put this code in MainActivity.java

Click run

Add a comment

Related posts:

Spark Architecture

Spark is an open-source big data processing framework that is used to process large datasets across a distributed network of computers. It was developed at the University of California, Berkeley in…

Blockchain alters real commodity trading platform

Reviewing and compile blockchain industry topic, updating market references and research environment. The London Metal Exchange (LME) are planning to use blockchain technology for tracking physical…

5 Universal Truths About Entrepreneurship Learned From Rwandan Coffee Farmers

I recently spent time in Rwanda with the Kula Project, an Atlanta-based non-profit that helps families in East Africa grow and sell coffee to eliminate poverty. Together we visited a farm community…