Quick Messaging Application into Database
-
open terminal and paste the following: sudo gem install cocoapods [sudo gem install -n /usr/local/bin cocoapods]
-
In terminal navigate to your working Directory and run:
pod init
-
You will see in the directory an empty Podfile.
-
Open the pod file using a text editor, replace the entire thing with the following:
platform :ios, "9.0"
use_frameworks!
target 'ChatChat' do
pod 'Firebase/Storage'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/RemoteConfig'
pod 'JSQMessagesViewController'
end
-
Save the file and close the text editor.
-
Next we will install the pods needed.
pod install
If you have setup Firebase during Lesson 3 - your done setting up. if not.
-
Login using Gmail/Google account
-
Click on “Add Firebase to your iOS app”
-
Enter your bundle name; i’m using com.davidkalman.ddfirebase - but do what you want
-
DO NOT ENTER ANYTHING ELSE
-
Click Add app
-
It will prompted you to download a PLIST file, download it. there is a sample file in the repo for you to use to connect to the sample firebase if you dont want to make your own
-
Drag it to the files section in Xcode; and FINISH in the window that Xcode pops up.
-
back in the Firebase window, click next, next, finish - we dont need any of that at this point of time.