You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FirebaseUI is an open-source library for iOS that allows you to quickly connect common UI elements to the [Firebase](https://firebase.google.com?utm_source=FirebaseUI-iOS) 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.
6
6
7
-
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.
7
+
Additionally, FirebaseUI provides modern SwiftUI authentication components that simplify Firebase authentication by integrating with common identity providers like Facebook, Twitter, Google, and Apple.
8
8
9
9
FirebaseUI clients are also available for [Android](https://github.com/firebase/FirebaseUI-Android) and [web](https://github.com/firebase/firebaseui-web).
# For SwiftUI components (uses Swift Package Manager)
75
+
$ cd samples/swiftui/FirebaseSwiftUISample
76
+
$ open FirebaseSwiftUISample.xcodeproj
77
+
78
+
# For UIKit data binding components (uses CocoaPods)
79
+
$ cd FirebaseDatabaseUI # or FirebaseFirestoreUI, FirebaseStorageUI
79
80
$ pod install
80
81
```
81
82
82
-
Alternatively you can use `pod try FirebaseUI` to install the Objective-C or Swift sample projects.
83
-
84
83
## Sample Project Configuration
85
84
86
-
You'll have to configure your Xcode project in order to run the samples.
85
+
You'll have to configure your Xcode project in order to run the SwiftUI samples.
87
86
88
87
1. Your Xcode project should contain a `GoogleService-Info.plist`, downloaded from [Firebase console](https://console.firebase.google.com) when you add your app to a Firebase project.<br>
89
-
Copy the `GoogleService-Info.plist` into the sample project folder (`samples/obj-c/GoogleService-Info.plist` or `samples/swift/GoogleService-Info.plist`).
88
+
Copy the `GoogleService-Info.plist` into the sample project folder.
90
89
91
-
1. Update URL Types.<br>
90
+
1. Update URL Types (for OAuth providers).<br>
92
91
Go to `Project Settings -> Info tab -> Url Types` and update values for:
93
-
+ `REVERSED_CLIENT_ID` (get value from `GoogleService-Info.plist`)
94
-
+ `fb{your-app-id}` (put Facebook App Id)
92
+
+ `REVERSED_CLIENT_ID` (get value from `GoogleService-Info.plist`) - Required for Google Sign-In
This can be done here: `Project Settings -> Capabilities -> KeyChain Sharing -> ON`
102
-
103
-
1. Don't forget to configure your Firebase App Database using [Firebase console](https://console.firebase.google.com).<br>
104
-
Database should contain appropriate read/write permissions and folders (`objc_demo-chat` and `swift_demo-chat` respectively)
105
-
106
-
1. In Order to use `Phone Auth` provider you should [Configure Push Notifications](#configure-apple-push-notifications)
107
-
108
-
#### Configure Apple Push Notifications
109
-
110
-
##### Enable silent push notifications in Xcode
111
-
112
-
*`Push Notification` - Under `Capabilities` tab in your app target choose `Push Notifications` and put the switch to the `On` position.
113
-
*`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).
114
-
115
-
##### Upload APNS Certificate to Firebase
116
-
117
-
1. Create your `Provisioning APNS SSL Certificates` by following the steps on the following link.
+ Inside your project in the Firebase console, select the gear icon, select `Project Settings`, and then select the `Cloud Messaging` tab.
122
-
+ Select the `Upload Certificate` button for your development certificate, your production certificate, or both. At least one is required.
123
-
+ 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`.
99
+
1. Don't forget to configure your Firebase project using [Firebase console](https://console.firebase.google.com).
0 commit comments