iNotes
  • Introduction
  • Screenshots
  • App
    • Starter Guide
    • Directory Structure
    • Change App Name, ID & Primary Color
    • Firebase Intergation
    • Firebase Authentication Setup
  • Others
    • Changelogs
Powered by GitBook
On this page

Was this helpful?

  1. App

Firebase Authentication Setup

PreviousFirebase IntergationNextChangelogs

Last updated 3 years ago

Was this helpful?

Set up Authentication

In order to use Email/Password & Google Sign-In with Firebase Authentication, you have to enable it by going to the Authentication page from the left menu of the Firebase dashboard and selecting the Sign-in method tab.

  • Here, enable Email/Password (under Provider) and click on Save.

  • Next, enable Google (under Provider), enter the project name and support email, and click on Save.

Make sure you also add the support email in Firebase project settings -> General.

There is no extra configuration required to use Google Sign-In on an Android device. But to use it on an iOS device, you have to do just one more thing.

Go to your project directory -> ios -> Runner -> Info.plist file, and add the following there:

<!-- Put me in the [my_project]/ios/Runner/Info.plist file -->
<!-- Google Sign-In section -->
<key>CFBundleURLTypes</key>
<array>
	<dict>
		<key>CFBundleTypeRole</key>
		<string>Editor</string>
		<key>CFBundleURLSchemes</key>
		<array>
			<!-- TODO Replace this value: -->
			<!-- Copied from GoogleService-Info.plist key REVERSED_CLIENT_ID -->
			<string>com.googleusercontent.apps.861823949799-vc35cprkp249096uujjn0vvnmcvjppkn</string>
		</array>
	</dict>
</array>
<!-- End of the Google Sign-In section -->

Don’t forget to replace the value as per the above comment with the REVERSED_CLIENT_ID present in the GoogleService-Info.plist file