Giter VIP home page Giter VIP logo

atme's People

Contributors

joelrorseth avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

atme's Issues

users are not found

Hello
the project is very well developed but the i cant find any users i have enabled the database {
"rules": {
".read": true,
".write": true
}
}
and
userInformationRef.keepSynced(true)
registeredUsernamesRef.keepSynced(true)
reportedUsersRecordRef.keepSynced(true)
are in AuthController.swift but still cant see any users can you please help me
thank you

Refactor model classes to use dependency injection

In order to make way for proper unit testing, the model classes require major refactoring. To test authentication, database operations, or anything to do with Firebase, complete mocks will be created. The first step in achieving this is creating protocols for the model classes. Mock models can then be made for the unit tests.

Dedicated media viewer

Planning to integrate a dedicated, full screen view for viewing photos in the conversations. This will be an important increment to the eventual goal of supporting video, GIF and document messaging. The existing photo bubbles in the conversation view controller should be improved, and will need to trigger a segue to an instance of this proposed viewer upon press.

Crashes when receiving message whilst in ConvoViewController

App crashes when user receives a message when already inside the ConvoViewController. Message is not retrieved properly in observeReceivedMessages(). Crash report states: Could not cast value of type 'NSNull' (0x111b99918) to 'NSString' (0x1111a4c60).

New users cannot be found

After downloading the app, any users that have joined after that point in time cannot be found in the search. In general, the search function seems to not be working, and is checking a cached copy of the database instead of the live one.

Profile photo

Hey when setting the profile picture in the app it doesn’t save would that be something to do with Firebase

Cannot create user

Cannot create a new user. "Sign up" button's action is being called successfully, but the action block in observeSingleEvent() is never executed.

Ultimate Firebase Chat

Hi, I’d like to contribute to the effort of creating a great Firebase Chat library for iOS written in Swift. There are currently 780 repos on GitHub and I am in a process of writing the 781st one. Which kind of doesn’t make sense.

Would you be interested in joining forces and working together on a common library?

https://github.com/kutakmir/OpenFirebaseChat/

I made an incentive to create a community-driven Firebase Chat library that we all can use and will be better than any of the individual ones that are out there at the moment. We can start by forking one of the existing ones and then keep on improving it together.

Notifications not working

Push Notifications are not working. When a message is sent the other user does not receive a notification. This is happening because the code that sends the notification is not being called. I would appreciate if anyone can fix it.

for notificationID in notificationIDs.values {
        
      
      NotificationsController.send(to: notificationID, title: message.sender, message: message.text ?? Constants.Placeholders.pictureMessagePlaceholder)
    }

This code is not being executed from the send message and no notifications is being sent.

func send(message: Message) {
    
    
    
    // Write the message to Firebase
    let randomMessageId = messagesRef!.childByAutoId().key
    
    // Since we are sending this message, we can cache it as most recent
    mostRecentMessageTimestamp = message.timestamp
    
    
    // If there are inactive members, attempt to rejoin them
    // Otherwise you would manually have to rejoin to be added again
    
    for (uid, username) in inactiveMembers {
      databaseManager.attemptRejoinIntoConversation(convoID: convoId, uid: uid, username: username, completion: {_ in})
    }
    
    
    // Each message record (uniquely identified) will record sender and message text
    if let text = message.text {
        messagesRef?.child(randomMessageId!).setValue(
        ["sender" : message.sender, "text" : text, "timestamp" : message.timestamp.timeIntervalSince1970]
      )
      
    } else if let imageURL = message.imageURL {
        messagesRef?.child(randomMessageId!).setValue(
        ["imageURL": imageURL, "sender" : message.sender, "timestamp" : message.timestamp.timeIntervalSince1970]
      )
    }
    
    
    // Set timestamp for most recent conversation viewing
    // This is required to later determine if messages loaded have already been seen
    updateLastSeenTimestamp(convoID: convoId)
    
    // TODO: Internet speed may prevent sending notification if observers do not find out about newly reactivated users in time
    // Ask NotificationController to send this message as a push notification
    
 
    for notificationID in notificationIDs.values {
        
      
      NotificationsController.send(to: notificationID, title: message.sender, message: message.text ?? Constants.Placeholders.pictureMessagePlaceholder)
    }
    
    
  }

Let me know if you know how to fix this issue!

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.