Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/googlearchive/ios-swift-chat-example
FireChat implemented in Swift!
https://github.com/googlearchive/ios-swift-chat-example
Last synced: 1 day ago
JSON representation
FireChat implemented in Swift!
- Host: GitHub
- URL: https://github.com/googlearchive/ios-swift-chat-example
- Owner: googlearchive
- Archived: true
- Created: 2014-08-13T21:55:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-08-24T22:14:20.000Z (about 6 years ago)
- Last Synced: 2024-08-02T13:33:49.567Z (3 months ago)
- Language: Objective-C
- Size: 15.6 MB
- Stars: 669
- Watchers: 90
- Forks: 218
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Status: Archived
This repository has been archived and is no longer maintained.![status: inactive](https://img.shields.io/badge/status-inactive-red.svg)
# This is a legacy Firebase example (for SDK 2.x.x). You probably want to use one of the up-to-date examples at https://firebase.google.com/docs/samples
---
Swift Chat Example
==============Chat implemented in Swift! Now works in Xcode 6.0.1.
![animated screenshot of this app in use](ios-chat.gif)
## What's here
* You can log in with Twitter.
* You can post / receive messages
* Powered by [Firebase](https://www.firebase.com/)If you have issues with XCTest, check out [this issue](https://github.com/firebase/ios-swift-chat-example/issues/5).
## Setup
This example still has some rough edges around authentication. Push through them, though. It's worth the effort.'### Configure Firebase
0. Go to your [Firebase Dashboard](https://www.firebase.com/account/) and create a new Firebase app.
0. Clone this repo.
0. Open `FireChat-Swift.xcodeproj` in Xcode.
0. Edit [`MessagesViewController.swift`](FireChat-Swift/MessagesViewController.swift) and change `swift-chat.firebaseio.com` to point to your Firebase.### Configure Login
0. Create a [new Twitter app](https://apps.twitter.com/) to use for login.
0. Go to your [Firebase Dashboard](https://www.firebase.com/account/) and navigate to your Firebase app.
0. Click 'Login & Auth' in the left side menu. Select 'Twitter' and check the box to 'Enable Twitter Login'
0. Paste your Twitter API Key and API Secret into the form.
0. Edit [`LoginViewController.swift`](FireChat-Swift/LoginViewController.swift) and change `swift-chat.firebaseio.com` to point to your Firebase. Update `twitterAppId` on the next line to match your Twitter API Key.
0. Run the app on a device or simulator
0. On your iOS device or simulator, go to Settings, scroll down to the accounts section (which contains Twitter, Facebook, Flickr and Vimeo), select Twitter -> Add Account.![no, that's not my password, but if you can figure out what I typed, tweet at me, and I'll send you Firebase swag](setup-twitter.gif)
## License
[MIT](http://firebase.mit-license.org)