Giter Club home page Giter Club logo

messenger's Introduction

       

Requirements

  • Xcode version 11.2.1+
  • Swift 5
  • iPhone 8 or higher
  • iOS 13.0+

Functionality

  • Real-time chat
  • User online indicator
  • Sending text messages
  • Unlimited length of text messages
  • Sending image messages
  • Sending video messages
  • Sending audio messages
  • Typing indicator
  • Messages status indicator
  • Delete messages
  • Reply to / Forward messages
  • Custom chat design
  • Chat pagination
  • Friend network
  • Locate friends on a map (if they have disabled an anonymous mode)
  • Custom map design
  • Change email / password
  • Change profile image

How to install?

  1. Install CocoaPods
  2. Open Terminal and run pod install directly in mChat/Messenger folder.
  3. In order for Firebase to work, create a new project for your application.
  4. Download GoogleService-Info.plist from your newly created Firebase project and replace it with the old one. screenshot
  5. Enable Email/Password authentication method
  6. Create Realtime Database
  7. Set Realtime Database rules to:
{
  "rules": {
     ".read": true,
     ".write": true     
  }
}
  1. Enable your Firebase Storage
  2. For using Mapbox, create a new token
  3. Create a new key named MGLMapboxAccessToken in your Info.plist and insert access token as a value. More Info

       

Credits

       

License

Copyright 2020 VITALIY PALIY

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

messenger's People

Contributors

altacc-pal avatar mohsinalimat avatar vitaliy-paliy avatar zastress 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

messenger's Issues

Problem with accept/reject friend request button

This is the same issue as #18 , But the solution was never posted.

From: FriendRequestCell.Swift

private func setupAcceptButton() {
		
		
        acceptButton.translatesAutoresizingMaskIntoConstraints = false
        acceptButton.setTitle("ACCEPT", for: .normal)
        acceptButton.titleLabel?.font = UIFont.boldSystemFont(ofSize: 12)
        let gradient = setupGradientLayer()
        gradient.frame = bounds
        acceptButton.layer.insertSublayer(gradient, at: 0)
        acceptButton.tintColor = .white
        acceptButton.layer.cornerRadius = 12
        acceptButton.layer.masksToBounds = true
		

		debugPrint("*** Marker 10")
		acceptButton.addTarget(self, action: #selector( addButtonPressed), for: .touchUpInside)
                 debugPrint("*** Marker 11")
		addSubview(acceptButton)
        let constraints = [
            acceptButton.trailingAnchor.constraint(equalTo: trailingAnchor, constant: -16),
            acceptButton.bottomAnchor.constraint(equalTo: centerYAnchor),
            acceptButton.widthAnchor.constraint(equalToConstant: 75),
            acceptButton.heightAnchor.constraint(equalToConstant: 20)
        ]
		
        NSLayoutConstraint.activate(constraints)
		//addButtonPressed()
    }

accecpt.addTarget is the issue. Nothing happens when touched.
The syntax seems to correct. The order seems to be correct as well.
I question the location of it, though.
Or is it something simple?

Marker 10 and 11 do show up without error.

App Halted

After setup the Firebase, successfully build the project, app will be halted after these pages. How to figure it out? Is that related to the Firebase read/write right?

截屏2022-03-14 下午6 36 54

截屏2022-03-14 下午6 37 26

some file are missing

"import Lottie" it gives me an error with no such module Lottie written
"import Firebase" it gives me an error with Couldn't build Objective-C module "firebase"
#import <FirebaseCore/FirebaseCore.h> this file are missing

App crash

Hi when i change profile image in ipad 13.5.1 it crashes. Can you check it out and help me.
Best wishes

Unexpectedly found nil in getUsersList

After clicking on "Add Friends" it find's nil in the following function unexpectedly.
This also happens in the demo app (master branch).

 private func getUsersList() {
        userListNetworking.fetchUsers { usersList in
            let sortedUserList = Array(usersList.values).sorted { (friend1, friend2) -> Bool in
                return friend1.name < friend2.name.     //Xcode showing the nil here
            }
            self.users = sortedUserList
            self.blankLoadingView.isHidden = true
            self.tableView.reloadData()
        }
    }

problem with friend request

When a person sends a friend request, the other is unable to accept it, as no action is taken wherever you press

Mapbox

building for iOS Simulator, but linking in dylib built for iOS, file '/Users/charliemallia/Downloads/Messenger/Pods/Mapbox-iOS-SDK/dynamic/Mapbox.framework/Mapbox' for architecture arm64

Reply UI bug

Hello,

replay UI bug when user name is long and text message is sort.

Simulator Screen Shot - iPhone 11 Pro Max - 2020-03-12 at 09 32 43

App Crash

Hi Sir,

I have cloned this app and made the necessary changes (install pods, addition of Google info plist file, creation of database and storage in firebase, mapbox token). When I run it, the app crahses and shows following error message on Appdelegate:
Screenshot 2020-12-05 at 1 36 25 AM

When I go into Exception backtrace thread, it points out to AuthNetworking.Swift (setupUserinfo) function, line 59: Database.database().reference().child("users").child(uid).observeSingleEvent(of: .value)
And also in scene delegate line 30:
authNetworking.setupUserInfo(uid) { (isActive) in

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.