• Stars
    star
    1,484
  • Rank 30,472 (Top 0.7 %)
  • Language
    Objective-C
  • License
    Apache License 2.0
  • Created almost 9 years ago
  • Updated 18 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

iOS UI bindings for Firebase.

FirebaseUI for iOS β€” UI Bindings for Firebase

Anonymous Auth Auth Database Email Auth Facebook Auth Firestore Google Auth OAuth Phone Auth Storage Samples

FirebaseUI is an open-source library for iOS that allows you to quickly connect common UI elements to the Firebase database for data storage, allowing views to be updated in realtime as they change, and providing simple interfaces for common tasks like displaying lists or collections of items.

Additionally, FirebaseUI simplifies Firebase authentication by providing easy to use auth methods that integrate with common identity providers like Facebook, Twitter, and Google as well as allowing developers to use a built in headful UI for ease of development.

FirebaseUI clients are also available for Android and web.

Installing FirebaseUI for iOS

FirebaseUI supports iOS 10.0+ and Xcode 11+. We recommend using CocoaPods, add the following to your Podfile:

pod 'FirebaseUI', '~> 8.0'       # Pull in all Firebase UI features

If you don't want to use all of FirebaseUI, there are multiple subspecs which can selectively install subsets of the full feature set:

# Only pull in Firestore features
pod 'FirebaseUI/Firestore', '~> 8.0'

# Only pull in Database features
pod 'FirebaseUI/Database', '~> 8.0'

# Only pull in Storage features
pod 'FirebaseUI/Storage', '~> 8.0'

# Only pull in Auth features
pod 'FirebaseUI/Auth', '~> 8.0'

# Only pull in Facebook login features
pod 'FirebaseUI/Facebook', '~> 8.0'

# Only pull in Google login features
pod 'FirebaseUI/Google', '~> 8.0'

# Only pull in Phone Auth login features
pod 'FirebaseUI/Phone', '~> 8.0'

If you're including FirebaseUI in a Swift project, make sure you also have:

platform :ios, '11.0'
use_frameworks!

Otherwise, you can include the FirebaseUI Xcode project from this repo in your project. You also need to add the Firebase framework to your project.

Documentation

The READMEs for components of FirebaseUI can be found in their respective project folders.

Local Setup

If you'd like to contribute to FirebaseUI for iOS, you'll need to run the following commands to get your environment set up:

$ git clone https://github.com/firebase/FirebaseUI-iOS.git
$ cd FirebaseUI-iOS
$ cd Auth # or PhoneAuth, Database, etc
$ pod install

Alternatively you can use pod try FirebaseUI to install the Objective-C or Swift sample projects.

Sample Project Configuration

You'll have to configure your Xcode project in order to run the samples.

  1. Your Xcode project should contain a GoogleService-Info.plist, downloaded from Firebase console when you add your app to a Firebase project.
    Copy the GoogleService-Info.plist into the sample project folder (samples/obj-c/GoogleService-Info.plist or samples/swift/GoogleService-Info.plist).

  2. Update URL Types.
    Go to Project Settings -> Info tab -> Url Types and update values for:

    • REVERSED_CLIENT_ID (get value from GoogleService-Info.plist)
    • fb{your-app-id} (put Facebook App Id)
  3. Update Info.plist with Facebook configuration values

    • FacebookAppID -> {your-app-id} (put Facebook App Id)
  4. Enable Keychain Sharing.
    Facebook SDK requires keychain sharing.
    This can be done here: Project Settings -> Capabilities -> KeyChain Sharing -> ON

  5. Don't forget to configure your Firebase App Database using Firebase console.
    Database should contain appropriate read/write permissions and folders (objc_demo-chat and swift_demo-chat respectively)

  6. In Order to use Phone Auth provider you should Configure Push Notifications

Configure Apple Push Notifications

Enable silent push notifications in Xcode
  • Push Notification - Under Capabilities tab in your app target choose Push Notifications and put the switch to the On position.
  • Background Mode - Under Capabilities tab in your app target choose Background Modes put the switch to the On position. In the list of available modes select Background fetch and Remote notifications (If available).
Upload APNS Certificate to Firebase
  1. Create your Provisioning APNS SSL Certificates by following the steps on the following link. https://firebase.google.com/docs/cloud-messaging/ios/certs

  2. Upload your APNS Certificate to Firebase:

    • Inside your project in the Firebase console, select the gear icon, select Project Settings, and then select the Cloud Messaging tab.
    • Select the Upload Certificate button for your development certificate, your production certificate, or both. At least one is required.
    • For each certificate, select the .p12 file, and provide the password, if any. Make sure the bundle ID for this certificate matches the bundle ID of your app. Select Save.

Contributing to FirebaseUI

Contributor License Agreements

We'd love to accept your sample apps and patches! Before we can take them, we have to jump a couple of legal hurdles.

Please fill out either the individual or corporate Contributor License Agreement (CLA).

Follow either of the two links above to access the appropriate CLA and instructions for how to sign and return it. Once we receive it, we'll be able to accept your pull requests.

Contribution Process

  1. Submit an issue describing your proposed change to the repo in question.
  2. The repo owner will respond to your issue promptly.
  3. If your proposed change is accepted, and you haven't already done so, sign a Contributor License Agreement (see details above).
  4. Fork the desired repo, develop and test your code changes.
  5. Ensure that your code adheres to the existing style of the library to which you are contributing.
  6. Ensure that your code has an appropriate set of unit tests which all pass.
  7. Submit a pull request

More Repositories

1

functions-samples

Collection of sample apps showcasing popular use cases using Cloud Functions for Firebase
JavaScript
11,952
star
2

quickstart-android

Firebase Quickstart Samples for Android
Java
8,563
star
3

flutterfire

πŸ”₯ A collection of Firebase plugins for Flutter apps.
Dart
8,415
star
4

quickstart-js

Firebase Quickstart Samples for Web
HTML
4,818
star
5

firebase-js-sdk

Firebase Javascript SDK
TypeScript
4,720
star
6

FirebaseUI-Android

Optimized UI components for Firebase
Java
4,590
star
7

firebaseui-web

FirebaseUI is an open-source JavaScript library for Web that provides simple, customizable UI bindings on top of Firebase SDKs to eliminate boilerplate code and promote best practices.
JavaScript
4,465
star
8

firebase-tools

The Firebase Command Line Tools
TypeScript
3,913
star
9

firebase-ios-sdk

Firebase iOS SDK
Objective-C
3,583
star
10

quickstart-ios

Firebase Quickstart Samples for iOS
Swift
2,659
star
11

firebase-android-sdk

Firebase Android SDK
Java
2,165
star
12

codelab-friendlychat-web

The source for the Firebase codelab for building a cross-platform chat app
JavaScript
1,713
star
13

firebase-admin-node

Firebase Admin Node.js SDK
TypeScript
1,571
star
14

geofire-js

GeoFire for JavaScript - Realtime location queries with Firebase
TypeScript
1,440
star
15

firebaseui-web-react

React Wrapper for firebaseUI Web
JavaScript
1,246
star
16

superstatic

Superstatic: a static file server for fancy apps.
JavaScript
1,096
star
17

firebase-admin-go

Firebase Admin Go SDK
Go
1,088
star
18

firebase-functions

Firebase SDK for Cloud Functions
TypeScript
1,013
star
19

firebase-admin-python

Firebase Admin Python SDK
Python
958
star
20

quickstart-nodejs

JavaScript
872
star
21

extensions

Source code for official Firebase extensions
TypeScript
871
star
22

quickstart-unity

Firebase Quickstart Samples for Unity
C#
775
star
23

snippets-android

Android snippets for firebase.google.com
Java
748
star
24

snippets-web

Web snippets for firebase.google.com
JavaScript
714
star
25

geofire-java

GeoFire for Java - Realtime location queries with Firebase
Java
671
star
26

firebase-admin-java

Firebase Admin Java SDK
Java
500
star
27

geofire-objc

GeoFire for Objective-C - Realtime location queries with Firebase
Objective-C
440
star
28

friendlyeats-web

JavaScript
405
star
29

snippets-node

Node.js snippets for firebase.google.com
JavaScript
356
star
30

firebase-admin-dotnet

Firebase Admin .NET SDK
C#
350
star
31

quickstart-testing

Samples demonstrating how to test your Firebase app
TypeScript
317
star
32

friendlyeats-android

Cloud Firestore Android codelab
Kotlin
252
star
33

firebase-tools-ui

A local-first UI for Firebase Emulator Suite.
TypeScript
250
star
34

codelab-friendlychat-android

Firebase FriendlyChat codelab
Kotlin
238
star
35

firebase-cpp-sdk

Firebase C++ SDK
C++
230
star
36

quickstart-java

Quickstart samples for Firebase Java Admin SDK
Java
224
star
37

firebase-functions-test

TypeScript
211
star
38

quickstart-cpp

Firebase Quickstart Samples for C++
C++
190
star
39

friendlypix-ios

Friendly Pix iOS is a sample app demonstrating how to build an iOS app with the Firebase Platform.
Swift
166
star
40

fastlane-plugin-firebase_app_distribution

fastlane plugin for Firebase App Distribution. https://firebase.google.com/docs/app-distribution
Ruby
162
star
41

geofire-android

GeoFire for Android apps
Java
131
star
42

firebase-unity-sdk

The Firebase SDK for Unity
C#
128
star
43

friendlyeats-ios

Swift
128
star
44

firebase-functions-python

Python
124
star
45

snippets-ios

iOS snippets used in firebase.google.com
Objective-C
121
star
46

firebaseopensource.com

Source for firebase open source site
TypeScript
118
star
47

quickstart-python

Jupyter Notebook
114
star
48

quickstart-flutter

Dart
107
star
49

codelab-friendlychat-ios

Swift
69
star
50

FirebaseUI-Flutter

Dart
69
star
51

emulators-codelab

JavaScript
44
star
52

snippets-rules

Snippets for security rules on firebase.google.com
TypeScript
43
star
53

oss-bot

Robot friend for open source repositories
TypeScript
36
star
54

firebase-bower

Firebase Web Client
JavaScript
35
star
55

snippets-flutter

Dart
30
star
56

snippets-go

Golang snippets for firebase docs
Go
24
star
57

snippets-java

Java snippets for firebase.google.com
Java
16
star
58

abseil-cpp-SwiftPM

C++
13
star
59

firebase-testlab-instr-lib

Java
13
star
60

snippets-cpp

C++ snippets for firebase.google.com
C++
12
star
61

SpecsStaging

SpecsStaging
11
star
62

SpecsTesting

Ruby
11
star
63

firebase-docs

TypeScript
11
star
64

rtdb-to-csv

JavaScript
11
star
65

appquality-codelab-ios

Firebase iOS App Quality Codelab
Objective-C
11
star
66

genkit

TypeScript
9
star
67

level-up-with-firebase

C#
9
star
68

boringSSL-SwiftPM

C++
8
star
69

firestore-bundle-builder

TypeScript
7
star
70

.github

Default configuration for Firebase repos
6
star
71

nginx

This repo is a PUBLIC FORK
C
6
star
72

SpecsDev

6
star
73

firebase-release-dashboard

JavaScript
5
star
74

snippets-python

Python snippets for firebase.google.com
4
star
75

ok

HTTPS CDN Proxy Healthy Check
4
star
76

grpc-SwiftPM

C++
3
star
77

crashlytics-testapps

Java
2
star
78

.allstar

1
star