fabiochiu/medium-articles huggingface dataset:
10 choses à faire quand vous vous lancez en business
By: Lancelot Maitre
Tags: Entreprendre, Développement Personnel, Business, Entrepreneur, Apprendre

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
La résilience n’est pas une capacité individuelle, mais collective
By: Thomas Schmitt
Tags: Covid-19, Collaboration, Es Group, Développement Personnel, Résilience

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
React Firebase Hosting
By: Barkın Kızılkaya
Tags: Hosting, Deployment, React, Firebase

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.
Firebase: Environment Config
Tags: Linedevth, Config, Firebase

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
some configuration to flutter app when connecting firebase flutter SDK
By: Thilina Dilshan
Tags: Flutter, Firebase

some configuration to flutter app when connecting firebase flutter SDK thilina dilshan ·Dec 25, 2020

Go to app level build.gradle and add these things

defaultConfig{

multiDexEnabled true

}

dependencies{

implementation ‘com.android.support:multidex:1.0.3’

}

Then add these dependencies for pubspec.yml

firebase_core : ^0.5.0

Then initialize the app

import ‘package:firebase_core/firebase_core.dart’;

void main() async {

WidgetsFlutterBinding.ensureInitialized();

await Firebase.initializeApp();

runApp(MyApp());

}
[賽德計畫][firebase]投票狗. 這是一個供多人投票並實時觀看開票結果的小專案
Tags: Firebase, Angular

Abstract function return type in typescript

The problem is where you put the type parameter. If the type parameter is on the method, then that method must be…
Change your App Icon with Firebase Realtime Database — iOS Swift
By: Bruno Chen Chih Ying
Tags: Swift, Icons, Change, Firebase, iOS

Change your App Icon with Firebase Realtime Database — iOS Swift

Imagine that you need to change the icon of your application for the Black Friday period, you go and change the icon normally, but it turns out that not everyone updates the application always, and many people will not even know that the icon has been changed, or worse , there are people who will use the Black Friday icon at Christmas 😱.

We cannot depend on updates!! To change the icon when we want we will need supportsAlternateIcons. Apple introduced this in iOS 10.3, that feature make possible for developers to offer App Icon customization to their users with predefined additional icons, and using that with Firebase Realtime Database we can change the icon when we want 🥳.

If your projects doesn’t use Firebase Realtime, use this guide.

Here are the 5 steps to add this cool feature to your App. Let’s get started.
[Swift] 大家來聊天-串接Firebase登入登出
Tags: iOS, Swift, Firebase

建立 IBAction

貼上 log out 步驟

import Firebase ... let firebaseAuth = Auth.auth() do {

try firebaseAuth.signOut()

} catch let signOutError as NSError {

print ("Error signing out: %@", signOutError)

}

最後按下登出按鈕後彈回根view controller（不過這裡因為我的首頁並不是初始頁面的原因，按下登出會彈回上一層的集合頁）

do {

try firebaseAuth.signOut()



navigationController?.popViewController(animated: true)



}

正確跳回主畫面

如果想要解決就必須使用 unwindSegue

首先在要回去的頁面加上標記（內容可以為空）



...



UIStoryboardSegue)

{} class ChatHomeViewController: UIViewController {... @IBAction func backToChatHome(_ unwindSegue:{}

主頁面的 view controller拉線至 exit（手動建立 segue），同時命名 segue的 identifier

然後更改主頁面的 Log out按鈕的IBAction內容，如此一來點擊按鈕後便能跳回標示的主頁面



let firebaseAuth = Auth.auth()

do {

try firebaseAuth.signOut()

print("log out success")



performSegue(withIdentifier: "backToHome", sender: self)



} catch let signOutError as NSError {

print ("Error signing out: %@", signOutError)

}



} @IBAction func logoutPressed(_ sender: Any) {let firebaseAuth = Auth.auth()do {try firebaseAuth.signOut()print("log out success")} catch let signOutError as NSError {print ("Error signing out: %@", signOutError)

然後把這一系列頁面的 back按鈕都藏起來

override func viewDidLoad() {

super.viewDidLoad()title = "Holo Chat" navigationItem.hidesBackButton = true

}

並給主畫面的 navbar加上 title

override func viewDidLoad() {

super.viewDidLoad()

navigationItem.hidesBackButton = true

title = "Holo Chat"

}

下一篇會完成一些 cell的功能
BigQueryの2020年アップデートを（だいたい）全部振り返る
By: Yuta Hono
Tags: Data Lake, Google Cloud Platform, Data Warehouse, Bigquery, Firebase

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
Sign in with Apple using Firebase Auth SDK and SwiftUI 2
By: Sullivan De Carli
Tags: Swift, Swiftui, Firebase, iOS, Programming

Let’s Code!

Note: Code inspired by Authenticate Using Apple on iOS by Firebase.

Go to your ContentView.Swift file (the one that comes with your project) and import the following framework at the top:

Paste the following code after the struct opening graph but before the body variable of your file:

Copy-paste the following code over the code that you have just implemented:

Now, add the native SwiftUI Apple Sign In button with the drag-and-drop feature:

Alright! Now that we have our button and our nonce generator, we are ready to give an action to our button and sign up our user.

Paste the following code inside the onRequest method:

And paste the following code inside the onCompletion method:

Also, don’t forget to give a frame to the Apple button after the closing parentheses. Otherwise, the button will take up the full screen:
Deploy Vue with Firebase hosting
By: Porkaew Jarusdamrongwat
Tags: Deploy, Firebase, Vue, Firebasehosting

for this firebase hosting must select Blaze (Pay as you go) billing plan

vue and firebase

Preparation

Vue project

Firebase account https://console.firebase.google.com/

Create Vue Project

install vue cli

npm install -g @vue/cli

create project

vue create <project-name>

vue create demo-firebase-hosting

select vue version 2

select vue version 2

Open project with VS Code

Open project with VS Code
Flutter ve Firebase ile ToDo Uygulaması
By: Zafer Çalışkan
Tags: Flutter, Todo, Rest Api, Firebase, Türkçe

caliskanzafer/Todo-App

A new Flutter project. This project is a starting point for a Flutter application. A few resources to get you started…
Sending Firebase Push Notifications via Spring Boot Application — Part 1: Setting Up the Android Application
Tags: the source code at Github, Firebase, Kotlin

Well, hello. I’ve decided to publish a mini-series about sending Firebase Push Notifications via a Spring Boot application therefore I’ll be setting a Firebase Project and an Android application.

If you’ve already set up yours simply skip this one and check out the next parts. Otherwise, you can follow up on this article or check out another article I published to build an Android application with Firebase integration and it requires no coding experience at all.

Let’s get started.

Logo

0. Creating the application

The main focus of the application is going to be displaying push notifications sent from the Spring Boot application that we’ll also be building. So specifications like the application’s name, its minimum SDK version, etc. all up to you. Mine is as follows:
How to create firebase custom events
By: Ranjith K
Tags: Android App Development, Firebase Events, Firebase Custome Events, Firebase, Android Studio

In this post let us learn how to add custom events in firebase.

By default in firebase you can track default events like first open,app clear data,app exception and so on.

If you need to track some other events in your app then firebase custom event is required.

Initially you need to add firebase dependency and to link your project with firebase.

1) Dependency

implementation 'com.google.firebase:firebase-core:9.4.0'

2)Firebase instance

Add the firebase instance in java file in which you need to implement firebase custom events.

private FirebaseAnalytics firebaseAnalytics;

3)Declare object

firebaseAnalytics = FirebaseAnalytics.getInstance(this);

Bundle bundle = new Bundle();

bundle.putString(“video ad”, “loaded”);

firebaseAnalytics.logEvent(“video_ad_loaded”, bundle);

Using this code you can track custom events in your app using firebase.

To learn about testing firebase custom log events code click hereBy default in firebase you can track default events like first open,app clear data,app exception and so on.



If you need to track some other events in your app then firebase custom event is required.



Initially you need to add firebase dependency and to link your project with firebase.



1) Dependency



implementation 'com.google.firebase:firebase-core:9.4.0'





2)Firebase instance



Add the firebase instance in java file in which you need to implement firebase custom events.





private FirebaseAnalytics firebaseAnalytics;





3)Declare object



firebaseAnalytics = FirebaseAnalytics.getInstance(this);





Bundle bundle = new Bundle();



bundle.putString(“video ad”, “loaded”);



firebaseAnalytics.logEvent(“video_ad_loaded”, bundle);





Using this code you can track custom events in your app using firebase.



To test firebase custom events code click here.

If you have any suggestions or doubts leave it in comment box.

Thanks,

Ranjith K

For more posts related to android studio visit my blog.

https://ranjithandroid.blogspot.com
Firebase Cloud Messaging — Firebase Quickstart for Android
Tags: Quickstart, Firebase

Hello, I’d like to introduce Firebase Quickstart for Android. It helps a lot to learn about Firebase and the implementation of its features. (Also you never know when you’ll need an Android app that you’d like to send push notifications to publish an article series on Medium. Yep, that’s the reason beneath.)

Logo

0. Prerequisites

At this point having access to a Google account and Android Studio is pretty much all you need. (And that’s what makes it quickstart, right?)

1. Importing the code sample

Just fire up(not so p-unny, huh?) the Android Studio and press this lovely button.

The sample we looking for is “Firebase Quickstarts for Android”.

(Insert Star Wars joke here, p-unny this time.)

I’ve named mine “FirebaseQuickStart”. At this point, you may claim I’m not a creative person. Let’s just say you’re not totally wrong.

Let’s have a look at the project structure.
Catch 404 Urls in your Next.js app using Firebase in two easy setups
By: Piyush Sinha
Tags: Catch, 404, Url, Firebase, Nextjs

Requirements

Firebase Setup

Custom 404 page in Next.js

#1 Firebase

Firebase Setup with Web App

Get Started with Firebase here

- First, you need to add a project

- Then, add a Web App inside that Project

- After that, you can find your web app’s Firebase configuration something like this :

var firebaseConfig = {

apiKey: “XXXXXXXXXXXXXXXXXXXXXXXX”,

authDomain: “test-XXXX.firebaseapp.com”,

databaseURL: “https://test-XXXX-default-rtdb.firebaseio.com",

projectId: “test-XXXX”,

storageBucket: “test-XXX.appspot.com”,

messagingSenderId: “00000000000”,

appId: “1:00000000:web:XXXXX00000XXXXXXX”

};

- you need to edit rules in Rules section like this:

{“rules”: {

“.read”: false,

“.write”: true

}}

#2 Next.js

Custom 404 React component with useEffect and firebase package

To create a custom 404 page you can create a pages/404.js file. This file is statically generated at build time.

pages/404.js

import { useEffect } from "react";

import firebase from "firebase"; export default function Custom404() {

useEffect(() => { const firebaseConfig = {

apiKey: “XXXXXXXXXXXXXXXXXXXXXXXX”,

authDomain: “test-XXXX.firebaseapp.com”,

databaseURL: “https://test-XXXX-default-rtdb.firebaseio.com",

projectId: “test-XXXX”,

storageBucket: “test-XXX.appspot.com”,

messagingSenderId: “00000000000”,

appId: “1:00000000:web:XXXXX00000XXXXXXX”

} firebase.initializeApp(firebaseConfig).database().ref().child("404s").push(window.location.href);}, []); return <h1>404 - Page Not Found</h1>

}

Congratulations! You now have an access to catch all 404 Url and able to see all 404 Url at the Realtime Database section in Firebase
Firebase Cloud Messaging Configuration
By: Abdulmagid Elmaghbub
Tags: Push Notification Service, Cloud Messaging, Apple Push Notifications, Firebase, iOS

and voala you every thing is set you can test your notifications from the firebase console
How to Validate Your Users with Firebase
Tags: Firebase

Depending on your project, you might need to authenticate your users, give them the ability to sign up and log in.

Firebase Authentication

Why would you need that?

When it comes to separating your paying clients from the ‘window-shoppers’, getting their email addresses or your website just simply needs user authentication, your first thought might be: OMG that’s painful to set up!

Authenticating users the ‘old-school-way’ might not be the best experience, but you’ll still need to do it and spend countless hours on something you hate.

Good news, you don’t have to do that anymore! Let me introduce you to Firebase.

Hold on a sec. What’s that? I’ve never heard of Firebase!

I got you! Firebase should be your one-stop-shop when you’re thinking of any backend stuff, say authentication, real-time database, hosting, analytics, machine learning, etc.

Let me demonstrate with a simple React App!

Step 1: Setting up your application with Firebase

Go to Firebase and log into your Google account. Next, let’s create a new project using the big ‘Add project’ button.

Create your project

Let’s give the project a name too!

Add a name to your project

Next up, turn analytics on or off, based on your preference.

Turn the analytics on or off

Hit ‘Continue’. Wait till Firebase provisions your resources, which might take a couple of seconds. Once that’s done, you should see the project dashboard.

If so, congrats! You’ve just completed Step 1!
Implement react native firebase crashlytics on android
Tags: React Native, Firebase, Android

setup firebase crashlytics for your react native application.

Hello Friends,

Welcome To Infinitbility!

Many Folks, stuck on firebase crashlytics setup then please read and follow all steps carefully…

What is Firebase Crashlytics

Firebase Crashlytics helps you track, prioritize, and fix stability issues that erode app quality, in realtime. Spend less time triaging and troubleshooting crashes and more time building app features that delight users.

— Firebase Crashlytics
Seo friendly cost effective pagination with firestore
By: Ramaild M
Tags: Server Side Rendering, Firestore, Firebase, SEO, Pagination

Lately, as my news site grow bigger, I’ve been struggling with Seo friendly pagination with firestore query, which maily means firestore jumping page.

First I go to query with offset, end up with huge bill. Cause offset(1000) mean 1000 reads cost for nothing.

After digging into many many dicussions on Github or stackoverflow, I fount that I’t impossilbe. But really , I am just not digging it enough.

I paid for an answer at a website that pay for answer, proved that money is knowledge. Here the article of Seo friendly cost effective pagination with firestore that does not use offset but achieve great flexiblity to paginate , Easy to make everything static with server side render.

That is a smart solution.

Basically a well designed page id system saved my life. It is easy to understand with a simple data structure, how can’t I think of that on my own .

Along with nextjs ssr and incremental static gereation , I successfully turned my pagination into many individual page that can be visited directly.
WHAT IS FIREBASE?
By: Ismail Faris
Tags: Google, Introduction, Firebase

Firebase is a Backend-as-a-Service (BAAS). Firebase is Google’s mobile platform that helps you quickly develop high-quality apps and grow your business. Firebase is categorized as ,

Let see the flow which made it more unique from traditional method,
(Solution) Multiple Firebase Realtime Database Permission error
By: Dave Teu
Tags: JavaScript, Firebase, Realtime Database

Multiple database in the web

You came here because you may realise the example codes in firebase’s documentation may not work for you.

I did not test all the scenarios, however, you may face permission error if you were to use a single instance of Firebase Authentication, and followed the codes in the Firebase documentation.

If you use the following codes, and you have a rule set to allow only authenticated users to read/write…..

const app1 = firebase.initializeApp({

databaseURL: "https://testapp-1234-1.firebaseio.com"

});



const app2 = firebase.initializeApp({

databaseURL: "https://testapp-1234-2.firebaseio.com"

}, 'app2');



// Get the default database instance for an app1

var database1 = firebase.database();



// Get a database instance for app2

var database2 = firebase.database(app2);

You may encounter the following error when you connect to your second real time database.

You can see the above log when you enable Firebase logging

firebase.database.enableLogging(function(message) { console.log(“[FIREBASE]”, message); });

This is likely caused by you creating 2 separate instances of Firebase Realtime database when you did firebase.initializeApp twice (if you followed the documentations).

To resolve the permission error, and to allow the rule to be applied, you have to initializeApp only once with the sample code like below.

const app = firebase.initializeApp({ databaseURL: /*Realtime DB1 URL*/ }); const db = firebase.database() //this is how you usually initialize default db. const db2 = app.database(/* Realtime DB2 URL */) //you should initialize the db from your app instance

This way, your authentication session will be properly passed to your rules and you can apply the rules check with auth.uid
How to properly Add Firebase to Cordova App
By: Ibrahim Doma
Tags: Firebasecloudmessaging, Cordova Plugin, Ionic Framework, Firebase, Cordova

Firebase gives you Analytics of your App, is So Paramount to Integrate Firebase Into your App For That Will Really Help you In Knowing The Real Target and Where your App is More of Used, and this article Will Show you the Efficient Way on How to Add Firebase to your Application

Firstly: Install firebase Lib Plugin

Copy This Command and Run it on your Cordova App Directory

cordova plugin add cordova-plugin-firebase-lib

And Because of Google Firebase Has Migrated To Androidx as that is tremendous support and Improvement to Android Library, So you WIll Need to Add AndroidX Plugin

cordova plugin add cordova-plugin-androidx

After The Installation Is Done Head Over to Firebase Console and Click On Add Project

Fill Up The Name of your Project and you will See a Pop up:

Your project’s globally unique identifier, used in your Realtime Database URL, Firebase Hosting subdomains and more. You cannot change your project ID after project creation.

then click Save

Turn On Google Analytics and Proceed to The Next Step

On Configuring Google Analytic Click The Drop Down and Select Default Account Firebase and Click On create Project

Wait for The Project to Be Created and Click Continue

Select The Platform You Want to Add and Proceed, and In this Case I will be Using Android Platform

Just Insert App Package Name and Your App Name and Click On Registar App

After Download The Google Json File to the Directory of your App

And Now Firebase Have Successfully Installed and Added to your Cordova Project, If this Help you Please Drop a Comment and Share to your Beloved Ones
Translate Api usage with Firebase
By: Arif Karahan
Tags: Firebase Cloud Functions, Nodejs, Firestore, Firebase, Google Translate Api

Translate text from app to other languages easily

Firebase has lots of good api/extensions to use. Cloud Translation API is one of the best. It translates text into 100+ languages and can translate under a second. It’s good to have when your application used by several languages.

Before starting you should check for pricing. Easy to setup, choose your Firebase project to use then enable Cloud Translation API and get api key to use on project.
Your Cloud Firestore database has insecure rules
By: Vit Tertiumnon
Tags: Firebase

You can edit Firebase rules there: Firebase / Cloud Firestore / Rules .

Use for the first time for development (full access for all users):

rules_version = '2';

service cloud.firestore {

match /databases/{database}/documents {

match /{document=**} {

allow read, write: if true;

}

}

}

Power up a security for you firebase instance for public instances.
Deploying Flutter Web App using Firebase
By: Farrukh Sajjad
Tags: Flutter Web, Flutter, Firebase

Step 1

Create a flutter web project whether it is a small default launcher or a portfolio to showcase your projects and skills.

Step 2

Go to your firebase console and create a project for your web app.

Creating a new firebase project

Step 3

In step 3 we are doing to install firebase tools using command line, but first you need to install npm (node package manager).

If you do not have the npm installed, you can go and install it directly on your computer from node.js.

Once you have got your npm installed its time to install firebase tools from your command prompt or terminal if you’re using mac.

npm install -g firebase-tools

and now we have installed firebase-tools successfully.

Step 4

Now we need to initialize our flutter web project for firebase hosting.

Navigate to root folder of your flutter project from cmd. As mine was:

D:\web>

Run the following command to login with your firebase console account and grant it permission to use CLI:

D:\web> firebase login

Now you have successfully logged in.

Initialize your project using the command:

D:\web> firebase init

Use the arrow keys to navigate to “Hosting” and hit “SPACEBAR” to select that option.

Step 5

Inside your firebase console select your project and navigate to web app icon. Register your site’s name as follows:

Copy and paste the following lines of code in your index.html file inside <body> tag of your flutter web project.

<script src=”/__/firebase/8.2.0/firebase-app.js”></script>

<script src=”/__/firebase/init.js”></script>

Inside your firebase.json file in your project folder, copy the name of your website from firebase console and paste it inside the “hosting” key value.

Final Step.

Final step is to build and deploy your web app.

To build your web app go to the root folder of your app in your terminal and run the following command:

flutter build web

When you are ready to deploy your web app simply use the following command to deploy it on the firebase:

firebase deploy — only hosting:farrukhsajjad

Result

You will receive the following success result in your terminal:

Now you can share your hosting URL with your friends and social circle to let them know about your web app.

Cheers!
Firestore Nedir?. Herkese Merhaba,
By: Gökmen Bayram
Tags: Development, Android, Firestore, Firebase, Kotlin

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
Autentikasi React Native menggunakan firebase email&password (EXPO)
By: Bagus Amrullah Fikri
Tags: Authentication, React Native, Firebase, Expo, Email

bagusaff/expo-firebase-email-auth

React Native authenthication with email using expo firebase GitHub is home to over 50 million developers working…
│FireBase│FireBase推播應用介紹
Tags: Data, Google, Nonfiction, Firebase

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
ಡಾಕರ್/ Docker ಎಂದರೇನು, ಮತ್ತು ಅದು ಏಕೆ ಜನಪ್ರಿಯವಾಗಿದೆ?
Tags: Cloud Computing, Docker, Firebase, Ansible, AWS

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
Flutter game RollMyDice with Firebase
By: Rahul Kandoriya
Tags: Android App Development, Ui Ux Design, Ui Case Study, Flutter App Development, Firebase

Recently I wrote an app which was the part of the technical interview at one of the startup.

The Game Rules!

The application is a game, where the player can press a button to “Roll a dice”, and get a Random result anywhere between 1 and 6, the Player gets 10 chances to play, and every time the result of the dice roll should get added to the Player’s score. After 10 attempts the player’s results should be logged into the leaderboard. It has to be a Multi-User Application (with Registration and Login Pages)

View the project and GitHub code in here.

Roadmap

The main thing I had to consider while building it was to finish the app in 24 hours!

Tech Stack and Architecture

Flutter and firebase with the help of the stream-based architecture using flutter_riverpod package https://pub.dev/packages/flutter_riverpod

The architecture reference https://codewithandrea.com/videos/2020-02-10-starter-architecture-flutter-firebase/

UI & UX

User experience was simple. There are three main screens after the user has authenticated and for authentication, I used to sign in with phone number so verifying the number will be the first and common step while sign in or sign up. After verifying the phone number if the user is new then he/she have to enter his/her name otherwise the home screen appears.

There are three main screens namely RollDice(Play area), LeaderBoard and Account.

After registration, the user can edit his/her details anytime by going into the account screen.

Summary

It was a great learning experience for me even if I don’t go through the interview. Technical steps are available on Github and do check out the project.
Firebase Storage + Angular 10: File Upload/Display/Delete example
Tags: File Upload, Angular, Angular 10, Firebase Storage, Firebase

In this tutorial, I will show you how to make File Upload/Display/Delete with Firebase Storage and Angular 10 with the help of @angular/fire . Files' info will be stored in Firebase Realtime Database.

Firebase Storage + Angular 10 example Overview

We’re gonna build an Angular 10 App that helps us:

upload file to Firebase Storage

see the progress bar with percentage

save file metadata (name, url) to Firebase Realtime Database

display list of files

delete any file in the list

The result in Firebase Cloud Storage:

And Realtime Database:

Following image shows the data flow with Angular Client, Firebase Cloud Storage & Firebase Realtime Database:

- File upload:

store a file to Firebase Cloud Storage

retrieve metadata (name, url) of the file from Firebase Cloud Storage

save metadata (name, url) to Firebase Realtime Database

Display/get/delete files: use the file metadata (name, url) which is stored in Realtime Database as reference to interact with Firebase Storage.

For more details, please visit:

https://bezkoder.com/firebase-storage-angular-10-file-upload/

Further Reading

You can find how to make CRUD operations with Realtime DB or Firestore in the posts:

Or create Angular HTTP Client for working with Restful API in:

Angular 10 CRUD Application example with Web API

Source Code

You can find the complete source code for this tutorial on Github.
模仿 Music App +實作 Table View 的基本功能+FireBase登入認證 —(1) 匿名登入
By: Andy Lin
Tags: iOS, Swift, Firebase

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
Extract text from image in Android using Firebase ML Kit
By: Licio Lentimo
Tags: Android App Development, Firebase Ml Kit, Android, Firebase, Machine Learning

Firebase ML Kit is a mobile SDK for Android and iOS that enables developers to build apps using machine learning with ease. It has various capabilities including text recognition, image labelling, on-device translation among others. In this post, we are going to create a simple Android app that recognizes text from images we take with our camera. So let’s get started.

Firebase ML APIs

Create the project

First off, create a new Android project with an Empty Activity. We are going to use minimum SDK version 23 and our primary language will be Java.

Create new project

Create the layout

Next, we need to create the layout for our app. The layout looks as below:

Connect your app to Firebase

We need to connect our app to Firebase in order to use the APIs. Android Studio has a built-in Firebase tool for easy linking of your app to Firebase. Click on Tools->Firebase in your Android Studio top menu. On the sidebar that will pop up, navigate to Firebase ML and Connect to Firebase then add the dependencies required by clicking on Add Firebase ML to your app and accepting the changes.

Firebase Assistant in Android Studio

In your build.gradle(app) file, check for this dependency:

implementation ‘com.google.firebase:firebase-ml-vision:24.0.0’

Also add this line of code to your AndroidManifest.xml file

<meta-data android:name=”com.google.firebase.ml.vision.DEPENDENCIES” android:value=”ocr”/>

MainActivity

In our MainActivity.java file we are first going to bind our layout elements which we had an id for each in our layout. Next, we should set a click listener to our button that will perform the necessary operations. The first is checking for the camera permission. Don’t forget to add the permission to your AndroidManifest :

<uses-permission android:name=”android.permission.CAMERA”/>

In the method onActivityResult() , we perform the main operations of our app after the permission is granted by the user. We create a FirebaseVisionImage object from our image/bitmap. We then need to display the recognized text from our image to the TextView in our layout.

This project is hosted on GitHub:

And the Kotlin version:

https://github.com/liciolentimo/MobiVisionKt
模仿 Music App +實作 Table View 的基本功能+FireBase登入認證 — (2) Google 登入
By: Andy Lin
Tags: iOS, Google, Swift, Firebase

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
│FireBase│WebAPI發送推播實作
Tags: API, Nonfiction, Firebase

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
SwiftUI - Fetch data from Firebase
By: Sullivan De Carli
Tags: Swiftui, Firebase, iOS, Programming, iOS App Development

Create the ViewModel

Also, create a new group called ViewModels , from this folder, create a new Swift file called userViewModel. Write the following code in it:

This file will be calling Firebase and ask to query the data from Firestore, it’s going to be the link between our model that we created and the view (a list) that we are going to create.

Now your project should look like this:
Batch Operations with FlutterFire
By: Muhammad Bilal
Tags: Firestore, Flutter, Firebase

Sometimes you need to make batch operations like you want to add a list in a single go. Adding a list in a loop with multiple backend calls is not a good way to do it. Luckily firestore allows you to make batch operations.

As Firebase documentation says you execute multiple write operations as a single batch that can contain any combination of set , update , or delete operations.

We will take an example of List of Cities to understand it better.

class City {

String id;

String name; City({this.name}) :id=null; City.fromSnapshot(DocumentSnapshot doc) : assert(doc != null),

id = doc.id,

name = doc.data()[‘name’];

}

First, create a new batch instance via the batch method, then perform the operations on the batch, and then commit it once ready.

Adding in batch

void addBatchCities() {

final CitiesRef = FirebaseFirestore.instance.collection(COLLECTION_CITIES);

WriteBatch batch = FirebaseFirestore.instance.batch();

final cities = getCities();

for (City city in cities) {

final newCityItem = CitiesRef.doc();

batch.set(newCityItem, {

'name': city.name,

'createdAt': DateTime.now().millisecondsSinceEpoch

});

}

batch.commit();

}

Updating in batch

Future<void> updateBatchCities() {

final CitiesRef = FirebaseFirestore.instance.collection(COLLECTION_CITIES);

WriteBatch batch = FirebaseFirestore.instance.batch();



return CitiesRef.get().then((querySnapshot) {

var count = 0;

querySnapshot.docs.forEach((document) {

batch.update(document.reference, {'name': 'City${count++}'});

});



return batch.commit();

});

}

Deleting in batch



Future<void> deleteBatchCities() {

final CitiesRef = FirebaseFirestore.instance.collection(COLLECTION_CITIES);

WriteBatch batch = FirebaseFirestore.instance.batch(); return CitiesRef.get().then((querySnapshot) {

querySnapshot.docs.forEach((document) {

batch.delete(document.reference);

}); return batch.commit();

});

}

For Complete code:

https://github.com/BilalSiddiqui/Firestore-Batch-Operations

Thanks for reading. Just clap if you like it.

Follow me for more Firebase, Flutter and Android articles.
Connect Google Firebase with Nodemcu ESP8266
By: Senura Vihan Jayadeva
Tags: Senura Jayadeva, IoT, Esp8266 Nodemcu, Firebase, v0.3 Bi-directional streaming support

Hello guys, I’m Senura Jayadeva. Today I’m going to show you, how to connect Google Firebase with Nodemcu.

Requirements

Nodemcu ESP8266 Firebase Account ( We are going to work with the firebase realtime database ) Basic Knowledge about Arduino

What is Nodemcu ESP8266?

NodeMCU is an open-source platform, it’s hardware design is open for edit/modify/build. NodeMCU Dev Kit/board consist of ESP8266 wifi enabled chip. The ESP8266 is a low-cost Wi-Fi chip developed by Espressif Systems with TCP/IP protocol. It can be used for a wide variety of IoT applications.

Here I’m not going to explain how to install drivers & setup Arduino IDE for the Nodemcu ESP8266 board. If you have a problem with that please refer following links

Use esp8266 module in board manager > click “ESP-12E module”.

Install Arduino JSON Library

Make sure to install ArduinoJson version 5.13.5

​Install Firebase Library

After installing the ArduinoJson library, we have to install the Firebase library to connect with the firebase.

you can download it from this link — https://github.com/FirebaseExtended/firebase-arduino/releases

choose v0.3 Bi-directional streaming support

After downloading it go to Arduino IDE and go to Add .Zip library option and import the downloaded zip file

There is a small bug in this library. First, you have to fix this.

Go to C:\Users\Your PC Name\Documents\Arduino\libraries\firebase-arduino-0.3\src

Here you will see a file called FirebaseHttpClient.h

Open that file and change the fingerprint code as mentioned below.

03 D6 42 23 03 D1 0C 06 73 F7 E2 BD 29 47 13 C3 22 71 37 1B

Make sure to fix this otherwise you will not connect with the firebase

I used the website https://www.grc.com/fingerprints.htm

and type in “test.firebaseio.com” and got the new fingerprint.

Create a Real-Time Database on Firebase

Now go to firebase and create a project.

First, click on Go to console

2. Click on Add Project

3. Give a name for the project
Firebase Cloud Firestore — Fetching Data
By: Myrick Chow
Tags: Android App Development, Cloud Firestore, Firestore, Firebase, Mobile App Development

Pagination

Cloud Firestore SDK provides two types of pagination means — By value or by document snapshot. In my opinion, paginating by document snapshot is better and more feasible in all cases.

Method 1) Paginating by value

In the above code, developer has to first order the matched document list by a document field (e.g. fooDoubleKey at line 2) and then start paginating with a specific value (e.g. 20 at line 3). By applying different values (e.g. 17 ) to the startAfter() (line 3) in each pagination, we can fetch the next subset of matched document list.

SDK provides 4 types of functions for defining the start point and the end point of pagination:

startAt() - Include the value at the start point startAfter() - Exclude the value from the start point endAt() — Include the value at the end point endBefore() — Exclude the value from the end point

In my opinion, paginating by value is only suitable for collection with fixed content and ordering. Sample use cases would be paginating survey questions or FAQs, since each question has a unique and consecutive question number.

There could be a concern with random document content. Take the above collection as an example. We fetch the first four documents in the first fetch and know that the last document is having 18 . We would probably guess the next start value to be 17 and paginate at 17 . However, we don’t know the number of document duplication with value of 18 . We could miss some of the documents with the value of 18 which are highlighted as red in the above graph.

To tackle this issue, SDK provides the following alternative — Paginating with document snapshot.

Method 2) Paginating by Document Snapshot (More Feasible)
สร้าง REST API ด้วย Firebase cloud functions และ Express
By: Prudchaya Palee
Tags: Firestore, Expressjs, Firebase

Firebase Pricing

Authentication Phone Auth - US, Canada, and India help Prices are per successful verification. On the Blaze plan, Phone…
#2 Flutter & Firebase Tutorial: Implementasi Firebase Dynamic Link pada Flutter
By: Galang Aji Susanto
Tags: Android App Development, Flutter, Mobile Programming, Firebase, Dynamic Link

firebase_dynamic_links | Flutter Package

A Flutter plugin to use the Google Dynamic Links for Firebase API. With Dynamic Links, your users get the best…
React -Firebase Realtime Database
By: Barkın Kızılkaya
Tags: Software Development, React, Firebase, Reactjs

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.
Firebase Integration within 5 minutes: Android
By: Gaurav Rajput
Tags: Android Firebase, Firebase Cloud Functions, Firebase, Firebase Functions, Integration

Firstly let's understand What is Firebase?

Firebase is Google’s mobile application development platform that helps you build, improve, and grow your app. See detailed description here https://firebase.google.com/

Let’s see how we can integrate it into our own app to get these benefits. Its integration is effortless, and you can do it in 5 minutes.

Just follow these steps:

Sign in to firebase with your google account Click on Create Project

3. Add your project name (could be anything)

4. Accept terms and conditions and click Continue

5. You can see here what you can achieve after enabling google analytics into your firebase project. First of all, it's free; it allows you to do A/B testing, you can see crashes, user behavior, etc. Let’s enable google analytics for the project and click on Continue

6. Now, you move to another step to configure google analytics

Select your analytics location (This represents your organization's country/region) and tick all checkboxes (you can go through the details of these links). Click on Create project .

7. Great! It says Your new project is ready . Click on Continue

8. Now, let's see how we add a app to firebase. You can add any IOS, Android, or web app. Just click on the icon (marked green )whatever you want to add.

9. Let's see how we can add an android app. So I click on the android icon. It will open this page here in the first box, put your package name (like com.example.something). The second box basically will have your app’s nickname; you can put anything here. Move to next step

10. Now, you have to download the config file and have to paste it into your Android app module. Click on Next

11. After click next, you have to add google() repository and dependency to your project-level build.gradle file and app-level build.gradle as given below. Sync your Gradle changes. Click on Next

12. Now you are all set just clicked Continue to console

Let me show you how your console will look like:

As you can see in the above image, there is an active user section, DAU (daily active user) section, crashes section, etc. (It won't show all these data immediately; you have to upload your release APK to the play store to see all active users and other details)

If you face any problem while doing integration, you can comment here. I will surely try to fix them.
React Firebase Authentication
By: Ganapathy P T
Tags: Authentication, React Hook, React, Firebase

Creating a React app:

make sure you have node installed by typing the command else install it here

I am using create-react-app (recommended for beginners) to create my react boilerplate app. Feel free to use Next.js or Gatsby.js

npx create-react-app [your-app-name]

Configuring Firebase:

now change the directory and install firebase npm module by

cd [your-app-name] npm i firebase react-router-dom

start the development server by running the command

npm start

create a .env file in your project root directory and paste the code like below

this will save all these config strings to the environment as variables which can loaded to any of your project files at any time

the static site generator create-react-app which we are using has an unique way of storing the custom environment variables. We need to start the variable name as REACT_APP_ only then you can load that variables in your app. This is done for some security purpose so that you don’t actually overwrite the old variables which is already there. For more details refer the Official Documentation

Environment Variables are the way usually used by many developers to hide their API keys or any App Secrets while making open source projects so that we can hide our config and still use it. If you are pushing it to your repo in github or any other git clients, you can just include that .env file in your .gitignore file to ignore the file

create a new file base.js in your src folder and paste the config object you copied from the Firebase website

the environment variables can be accessed by process.env as mentioned above

Creating the UI:

here I have made the more simplest way to create the functional component without any styling and using the useState react hook to store the state

create a Login Component and write the code as below

create another component SignUp and paste the following code

alternatively to redirect if there is a user like this, you can make the routes for Login and Sign Up components as Private Routes which you can learn this from this blog post

make the Dashboard Component as per your requirements. You can get the current user details from the auth object as auth.currentUser exported from the base.js file

you can get the user’s name as auth.currentUser.displayName and profile image as auth.currentUser.photoURL. It is recommended to save the user in a context and use the Firebase real-time update on the auth state changes as follows

You can also use Social Logins like Google, Facebook, GitHub, Twitter, and many more… you can see all those options in the authentication tab in the Firebase console.
Import Wordpress Users into Firebase Authentication
By: Tech Cater
Tags: Wordpress Migration, Firebase Wordpress, Firebaseauthentication, Firebase, WordPress

Easy method to migrate Wordpress users into Firebase.

In this article I will show you how to migrate Wordpress users into Firebase Authentication. If everything is working correctly, existing Wordpress users don’t have to change their password in order to login to Firebase.

There are a paid plugin & its extension that can help to achieve it: Integrate Firebase PRO.

The process is pretty straightforward. After installing the plugin & the extension. It will shows how many users you currently have.

Then after one click, users are migrated to Firebase.

Note that if users don’t have an email, it won’t be imported to Firebase.

This is a paid plugin, so I don’t have any words on how it works under the hood. However, Firebase has a documentation on importing Users from a JSON file. Technically, if you can export Wordpress users and transform the format to Firebase Users, then they can also be imported.
Deploy React JS Apps for Free on Firebase
By: Suhail Kakar
Tags: React Js Development, React Js Tutorials, Firebase, Hosting, Reactjs

Deploy React JS Apps for Free on Firebase

Deploy JS React Apps for Free on Firebase

In this article , I’ll take you through all the steps involved in deploying a your React app on firebase.

Getting Started

Before deploying your app on firebase, you need to have Firebase project and a React project (create-react-app)

Build Your App for Production

Open your project folder cd your-project and build your app for production npm run build / yarn build. The JavaScript and CSS files will be inside the build/static directory.

Install Firebase Tools

Once you built your app then you can install firebase tools that will allow you to deploy your React app. You can install the tools by running

npm install firebase-tools -g / yarn global add firebase-tools

Login to Firebase

Make sure you’re in the root directory of your React app and run the following command to login to firebase in your terminal

firebase login

*If you’re not logged in, you’ll be asked to enter the credentials for your google account.

Initialize Firebase

Now that you’re logged in, you will need to initialize Firebase in your React app. You can do it by running the following command

firebase init

You will then be prompted with a series of questions and configuration options.

Choose Hosting: Configure and deploy Firebase Hosting sites Choose Use an existing project Select the firebase project that you created What do you want to use as your public directory? (public) build Configure as a single-page app (rewrite all urls to /index.html)? No File build/index.html already exists. Overwrite? No

Now it is time to deploy our app

Deploy to Firebase

Run the following command to deploy your app:

firebase deploy

*Firebase will then give you a unique URL where your deployed app is located (e.g. react-app.web.app).

That’s all there is to it!