FriendlyPix is a simple app to capture and share your favorite moments. It demonstrates the best practises of building an iOS app on the Firebase Platform. Follow interesting accounts of your choice. Interact with them through the comments. Stay up-to-date with the latest photos posted in the community.
Use FriendlyPix to:
- Post photos you want to keep on your profile grid.
- Search profiles for friends and family.
- Follow accounts to add photos from them in your Home feed.
- Explore the latest photos from the Trending feed.
- Interact with community through the comments under each photo.
The mobile FriendlyPix app need the Cloud Functions, the Realtime Database rules and the Cloud Storage rules to be deployed to work properly. You can find instructions at FriendlyPix Web Repository.
- Create a iOS App in your Firebase project using the Firebase Console.
- To add the FriendlyPix app to a Firebase project, use the bundleID
com.yourCompanyName.YourAppName
. - Download the generated
GoogleService-Info.plist
file, and copy it to the root directory of this app.
- Go to the Firebase Console and navigate to your project:
- Select the Auth panel and then click the Sign In Method tab.
- Click Google and turn on the Enable switch, then click Save.
- Open your regular
Info.plist
, navigate toURL types > Item 0 > URL schemes
, and replace the value ofYOUR_REVERSED_CLIENT_ID
with the value ofREVERSED_CLIENT_ID
from the GoogleService-Info.plist`. - Run the app on your device or simulator.
- Select Sign In and select Google to begin.
- Go to the Facebook Developers Site and follow all
instructions to set up a new iOS app. When asked for a bundle ID, use
com.yourCompanyName.YourAppName.AuthenticationExample
. - Go to the Firebase Console and navigate to your project:
- Select the Auth panel and then click the Sign In Method tab.
- Click Facebook and turn on the Enable switch, then click Save.
- Enter your Facebook App Id and App Secret and click Save.
- Open your regular
Info.plist
and replace the value of theFacebookAppID
with the ID of the Facebook app you just created, e.g 124567. Save that file. - In the Info tab of your target settings add a URL Type with a URL Scheme of 'fb' + the ID of your Facebook app, e.g. fb1234567.
- Run the app on your device or simulator.
- Select Sign In and select Facebook to begin.
Friendly Pix iOS is built using Swift and Firebase. The Auth flow is built using Firebase-UI. Additionally server-side micro-services are built on Cloud Functions for Firebase.
Dependencies are managed using CocoaPods.
Simply install the pods from Podfile in project folder
$ pod install
open the .xcworkspace file to see the project in VS code to open your-project.xcworkspace
CocoaPods is built with Ruby and is installable with the default Ruby available on Ubuntu. We recommend you use the default ruby.
$ sudo apt update
$ sudo apt install ruby-full
$ ruby --version
The output will look something like this:
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
Further when installing CocoaPods
$ sudo apt-get install gem
$ sudo gem install cocoapods
Simply install the pods and open the .xcworkspace file to see the project in Xcode.
$ pod install
This creates an .xcworkspace file for your app. Use this file for all future development on your application.
We'd love that you contribute to the project. Before doing so please read our Contributor guide.
© Google, 2011. Licensed under an Apache-2 license.