- Use with new Google SDK
- Test login (facebook, github, twitter)
- Fix demo app
Add this line to your application's Gemfile:
gem 'motion-firebase', github: 'soyoh/motion-firebase', branch: 'google-sdk'
And then execute:
$ bundle
To install the required Pods execute:
$ rake pod:install
-
Sign for an account in Firebase
-
Create the project, and export the file
GoogleService-info.plis
and place it inside yourResources
directory This will load the needed information for the Firebase pods. -
Place this inside your app_delegate.rb
Firebase.configure
firebase = Firebase.database(path: 'posts')
path
is optional. you dont have to specify the full URL to get, just to provide the path is sufficient
for example: messages, posts, post/1, users/pepito
Firebase.auth
Firebase.auth.authenticated?
Firebase.auth.logout