Giter VIP home page Giter VIP logo

swiftparsechat's Introduction

SwiftParseChat

An Example iOS Chat Application with Parse, written in Swift

Screenshots

screenshot1

screenshot2

screenshot3

Overview

This is a re-write of https://github.com/relatedcode/NotificationChat using Swift and Storyboards. Supports Facebook login. Uses Alamofire for Swift HTTP requests, and APAddressBook for easier address book contacts. Please Star this repo if you find it useful.

Installation

swiftparsechat's People

Contributors

huyouare avatar yingchyi 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swiftparsechat's Issues

Not able to compile. Pods-Alamofire Problem

using ruby-2.0.0 , cocoapods 0.37.1

I am installing it using the normal <pod install> command. No errors or warnings during the process.
However, when compiling, I get:

No such Module 'Alamofire'

If I install Alamofire manually, however, when compiling I get an Apple Match-O Linker Error :

ld: warning: directory not found for option '-F/Users/cristian/Library/Developer/Xcode/DerivedData/SwiftParseChat-btvjczpwjlekftetblbfrbposakh/Build/Products/Debug-iphoneos/Pods'
ld: framework not found Pods
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What is behind this??

Thanks !

Hide messages on Parse dashboard

Suppose I don't want to be able to read my users' chats. How to encrypt / hide the messages, so only the sender and receiver can see it? Does parse support something like that?

FBSDKMacros.h file not found

Lexical or preprocessor error.
FBSDKMacros.h is imported in FBSDKAccessTokenCacheV3.h and a file not found buildtime error keeps occurring. Is this an issue with the app or the FBSDK?

Dependencies problem

Hello,

I am unable to install dependencies : for example FBAudienceNetwork the error code says the url is not existing error 404.

Parse installation give the same error when unzipping the file:

[!]

Error installing Parse
[!] /usr/bin/curl -f -L -o /var/folders/5n/yzyw49951kv_ls58xtr3v_g40000gn/T/d20170523-8437-1hgna0q/file.zip http://parse-ios.s3.amazonaws.com/4f99c06cc58271c9e18199253fb9e059/parse-library-1.7.5.zip --create-dirs --netrc-optional

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found

Any hint will be welcome.

Kind regards,

Jamal.

The number of messages does not refresh automatically

Suppose A has sent 4 messages to B. The number of messages does not refresh automatically, it remains as the number last time you tapped Messages tab at the bottom.

You need to tap Message tab at the bottom to get the latest number of messages that you received.

mediaItem not displaying in Bubble

@huyouare

Im having trouble displaying attached images. I am positive that the image is successfully saved to Parse. So the trouble is retrieving the image from Parse and displaying it in the message bubble. Here is a screen shot of my add message function copied directly from your project. As you can see, there is a "print" call right before setting the 'mediaItem.image' that prints the message. The message.media is nil. Any advice?
screenshot 2015-12-24 16 41 08

Alamofire and

I did the steps following

  1. POD Install
    A-Mac-mini:SwiftParseChat-master A $ pod install
    Updating local specs repositories

CocoaPods 0.39.0 is available.
To update use: sudo gem install cocoapods
Until we reach version 1.0 the features of CocoaPods can and will change.
We strongly recommend that you use the latest version at all times.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Analyzing dependencies
Downloading dependencies
Using Alamofire (1.2.0)
Generating Pods project
Integrating client project
Sending stats
A-Mac-mini:SwiftParseChat-master A$

  1. Run SwiftParseChat.xcworkspace
  2. Convert to Latest Swift Syntax ? -> Convert -> Next
  3. Select targets to Convert
    Choose (1) Alamofire.framework
    (2) Pods.framework
    (3) SwiftParseChat.app
    (4) SwiftParseChatTests.xctest then Next -> Save
  4. Error
    error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/A/Library/Developer/Xcode/DerivedData/SwiftParseChat-azxetnbtlujdalcjoqglmhpwpjsd/Build/Intermediates/SwiftMigration/SwiftParseChat/Products/Debug-iphonesimulator/SwiftParseChat.app/Frameworks/Alamofire.framework/Alamofire (No such file or directory)

then Follow this
6. http://stackoverflow.com/questions/25817479/cannot-install-alamofire-in-new-xcode-project-no-such-module-alamofire

But still fews of Syntax Issues of from Objective-C to Swift Code.
E.g.
// kCFBundleExecutableKey as NSString
let executable: AnyObject = info[NSString] ?? "Unknown"

I hope some one will advise me to close the case asap.

Thanks and best regards

Im will to pay for your help! trouble defining stuff like PF_MESSAGES_CLASS_NAME.

@huyouare Hello I already have this app working for swift 3 but Im having trouble with the understanding the stuff you have in the parenthesis like "PF_MESSAGES_CLASS_NAME" and "PF_MESSAGES_GROUPID" and exactly how to connect everything. I have an upwork account and I will pay you 10$ if you can help me define and connect everything exactly. I basically have the messenger working but naming the classes is difficult. I have a social media app were users post their favorite items. And when a user clicks on a cell, a detail page shows up where any other user can message the creator of the post. Is this messenger good for that and could you help me with naming each class and connecting the messenger/ messages to a certain posting. Thanks

Problem if I change FB credentials in info.plist .

Hi,
Can anybody explain this to me as I'm a complete newbie with alamofire. I've using this example as a test project and when I run this for the first time, everything works fine. But one small tweak like changing the FB credentials in the info.plist messes up my FB login as the app crashes suddenly with a null pointer uncaught exception. Why is this ? Except the FB credentials, nothing is changed.

Compile error

I try build with source but i get error.
I dont know pods and others but today i installed this extentions. And cd project folder in terminal. After run pod install.
Says:
Analyzing dependencies
Downloading dependencies
Using Alamofire (1.1.4)
Using MBProgressHUD (0.9)
[!] Pods written in Swift can only be integrated as frameworks; this feature is still in beta. Add use_frameworks! to your Podfile or target to opt into using it.

Then i added use_frameworks! to podfile and trying again.

Analyzing dependencies
Downloading dependencies
Using Alamofire (1.1.4)
Using MBProgressHUD (0.9)
Generating Pods project
Integrating client project

I think success. But I cant run similator. Still error "No such module Alamofire."

Pods Issues

Facing pods issues while installing.
No such module 'ParseFacebookUtils'

UI doesn't appear

I am trying to implement the SwiftParseChat in my application.
Somehow my UI doesn't appear, even though I implemented all your code.
Is additional StoryBoard setup required?

Parse and Facebook frameworks

Can you update the Parse and Facebook frameworks? I am trying but I received a lot of erros and I am not expert in frameworks.
Thanks!

Last message fix

Hi all;
I test this project and i see mine last messages not shown on messages table. Only senders messages shown. So i try fix it and success. Maybe bad method but now i see my mesages too. I added messagescell under the function

    let groupidfix = message[PF_MESSAGES_GROUPID] as String
    var query = PFQuery(className: PF_MESSAGES_CLASS_NAME)
    query.whereKey(PF_MESSAGES_GROUPID, equalTo: groupidfix)
    query.orderByDescending(PF_MESSAGES_UPDATEDACTION)
    query.getFirstObjectInBackgroundWithBlock { (objem: PFObject!, error: NSError!) -> Void in
    self.lastMessageLabel.text = objem[PF_MESSAGES_LASTMESSAGE] as? String
    }

and u need to remove lastMessageLabel.text = message[PF_MESSAGES_LASTMESSAGE] as? String
end of file..

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.