Git Product home page Git Product logo

whatsup's Introduction

Depreciated

Firebase-Chat-Demo

Language: Swift 3 License

Firebase Chat Demo for iOS is a real time chat app based on Firebase and OTP Authendication , Also User can directly chat with their phone contacts whose using also this app.

Firebase Chat Demo to send and receive text messages, photos & location. also it allows you to connect with people in your phone contacts.

Features

Mobile Number Authentication User Status Multimedia Messages Fetch all Contacts From Phone Pretty Much Like Whatsapp, Hike, QQ and so on...

Screenshot of Firebase-Chat-Demo

Getting Started

To get started and run the app, you need to follow these simple steps:

  1. Open the QuickChat workspace in Xcode.
  2. Change the Bundle Identifier to match your domain.
  3. Go to Firebase and create new project.
  4. Select "Add Firebase to your iOS app" option, type the bundle Identifier & click continue.
  5. Download "GoogleService-Info.plist" file and add to the project. Make sure file name is "GoogleService-Info.plist".
  6. Go to Firebase Console, select your project, choose "Authentication" from left menu, select "SIGN-IN METHOD" and enable "Phone Number " option.
  7. In Xcode, enable push notifications for your project.
  8. Upload your APNs authentication key to Firebase. If you don't already have an APNs authentication key, see Configuring APNs with FCM.

8.1. Inside your project in the Firebase console, select the gear icon, select Project Settings, and then select the Cloud Messaging tab. 8.2. In APNs authentication key under iOS app configuration, click the Upload button. 8.3. Browse to the location where you saved your key, select it, and click Open. Add the key ID for the key (available in Certificates, Identifiers & Profiles in the Apple Developer Member Center) and click Upload.

If you already have an APNs certificate, you can upload the certificate instead.

  1. Open the terminal, navigate to project folder and run "pod update".
  2. You're all set! Run Firebase Chat Demo on your iPhone or the iOS Simulator.

Compatibility

This project is written in Swift 3.0 and requires Xcode 8.2 to build and run.

Quick Chat for iOS is compatible with iOS 9.1+.

Declaration

This Demo app is modifided From Quick-Chat.

Author

Satish Babariya, [email protected]

License

SwiftyContacts is available under the MIT license. See the LICENSE file for more info.

whatsup's People

Contributors

satishbabariya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

whatsup's Issues

Type 'StorageMetadata' has no member 'downloadURL'

case .photo:
let imageData = UIImageJPEGRepresentation((message.content as! UIImage), 0.5)
let child = UUID().uuidString
Storage.storage().reference().child("messagePics").child(child).putData(imageData!, metadata: nil, completion: { (metadata, error) in
if error == nil {
let path = StorageMetadata.downloadURL()?.absoluteString//Type 'StorageMetadata' has no member 'downloadURL'
let values = ["type": "photo", "content": path!, "fromID": currentUserID, "toID": toID, "timestamp": message.timestamp, "isRead": false] as [String : Any]
Message.uploadMessage(withValues: values, toID: toID, completion: { (status) in
completion(status)

Editor placeholder in source file

self.showLoading(state: true)
PhoneAuthProvider.provider().verifyPhoneNumber(self.loginEmailField.text!, uiDelegate: AuthUIDelegate?)//Editor placeholder in source file
{ [weak weakSelf = self] (verificationID, error) in
weakSelf?.showLoading(state: false)
for item in self.inputFields {
item.text = ""
}

App crashes

@satishbabariya : Can i get a firebase database.json file for this demo, as even after adding the google plist file it crashes as thew db tables is not there as per this demo.

Can you send it ASAP.

Thanks :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.