Giter Site home page Giter Site logo

cometchat / cometchat-sample-app-ios Goto Github PK

View Code? Open in Web Editor NEW
185.0 23.0 48.0 582.63 MB

Voice & Video Calling and Text Chat App for iOS

Home Page: https://www.cometchat.com

License: Other

Ruby 0.20% Swift 99.80%
chat ios app swift voice video calling conference messaging

cometchat-sample-app-ios's People

Contributors

abhisheksaralaya13 avatar ajayv-cometchat avatar darshanbhanushali avatar ghanshyammansata avatar jeetkapadia avatar ketanyekale avatar nishanttiwarins avatar priyadarshininadar avatar pushpsenairekar2911 avatar suryanshatcometchat 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

cometchat-sample-app-ios's Issues

Comet chat SDK 2.1.6 crashing IOS application while initiating call

First of all, I'm not using comet-chat UI Kit, instead, I'm using comet-chat SDK with my own swift ui.... all the feature works fine but sometimes i experience error on comet chat method named initiate call which crashes the whole application. further there is no try catch in code where we can track such errors. please look into it as its very crucial for the sustainability of my application. the error I receive is Thread 25: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0).

[v3.0.8-1] Uikit crashes

Uikit crashes on open.
file: CometChatMessageList.swift
function: private func refreshMessageList(forID: String, type: CometChat.ReceiverType, scrollToBottom: Bool)
line: 489
iOS: 15.4 (19E241)
CometChat SDK Version: v3.0.8-1

Screenshot 2022-04-05 at 17 11 32

Screenshot 2022-04-05 at 17 13 41

"No such module 'CometChatPro' "

I've installed everything as the readme instructed, pods, update them. and yet still I get this error message. I've checked my Pods folder and CometChatPro was in it but Xcode doesn't use it in my project for some reason. I haven't changed anything in the base project.

[SDK-Version] Issue Title '2.1.4'

pod is not updating from version '2.1.4' to '2.1.5' . It seems like you didn't upload latest version. It shows me error
[!] CocoaPods could not find compatible versions for pod "CometChatPro":
In Podfile:
CometChatPro (= 2.1.5)

None of your spec sources contain a spec satisfying the dependency: CometChatPro (= 2.1.5).

You have either:

  • out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
  • mistyped the name or version.
  • not added the source repo that hosts the Podspec to your Podfile.
    Screenshot 2021-01-14 at 1 35 33 PM

[4.2.1] Photo aren't displayed inside the chat unless the user exits and re-enters the chat

Describe the bug
Photo aren't displayed inside the chat unless the user exits and re-enters the chat

To Reproduce
Steps to reproduce the behavior:

  1. Open the iOS sample app
  2. Conversations with messages
  3. Choose a chat
  4. Tap the plus button and then Take a Photo
  5. Use the photo

The chat won't show the just shared photo unless the user exits and re-enters the chat

Expected behavior
The photo should be displayed inside a chat balloon

Actual behavior
The photo is not shown

Enviorment/Platfrom (please complete the following information):

  • iOS Version 17.4
  • CometChat SDK Version 4.2.1

Unable to open file (in target "CometChatPro-swift-sampleApp" in project "CometChatPro-swift-sampleApp") (in target 'CometChatPro-swift-sampleApp')

Hi,

I'm xCode newbie. I tried to download the project and run it in xCode but prompted the below the error. Seems like it's looking for Pods directory under the Pods. Anyone else has this issue?

Showing Recent Messages
/ios-swift-chat-app-master/Pods/Pods/Target Support Files/Pods-CometChatPro-swift-sampleApp/Pods-CometChatPro-swift-sampleApp.debug.xcconfig: unable to open file (in target "CometChatPro-swift-sampleApp" in project "CometChatPro-swift-sampleApp") (in target 'CometChatPro-swift-sampleApp')

[v3.0.8-1] CometChatSharedMedia collectionView reload loop

CometChatSharedMedia collectionView reload loops on file representing. On my side it didn't show files so I started to debug uikit and noticed that after it fetches files calls self?.collectionView.reloadData() line 118 after this collection view delegates calls func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) line 366 which will try to fetch files again. So in that way it keeps reloading and fetching files.
file: CometChatSharedMedia.swift
function: func refreshMediaMessages(for entity: AppEntity, type: CometChat.ReceiverType)
line: 118/366
iOS: 15.4.1(19E258)
CometChat SDK Version: v3.0.8-1

ComeChatSDK 4.0.4 CometChatUIKit.create(user: user) returns -> "ERR_BAD_REQUEST"

Hello testing your sdk for project to integrate it. We think to be a client for comechat and use sdk. But on the beginning I see a bug with creating on a new user.

When creating a new user getting error, the user has uuid, name and avatar.

(CometChatSDK.CometChatException) 0x0000600003b819b0 {
ObjectiveC.NSObject = {
isa = CometChatSDK.CometChatException
}
errorDescription = "Failed to validate the data sent with the request."
errorCode = "ERR_BAD_REQUEST"
}

Using Simulator iPhone 15Pro Max
App Transport Security Settings is added to Info.plist

Screenshot 2023-12-19 at 21 10 47

The SDK init successfully before this call.
CometChatUIKit.init(uiKitSettings: uikitSettings)

pod not working

I download the sample app and try to pod install or pod install --repo-update
but it is not working.

its stuck on Installing CometChatPro (2.1.2), no response at all
someone can help me?

my Xcode is 12.0.1

Build error

Hello,

I got this error on build, what should I do?

'TypingIndicator' has different definitions in different modules; first difference is definition in module 'CometChatPro.Swift' found super class with type 'NSObject'

Note:
All steps were done in quick start.
pod version: 'CometChatPro', '2.1.5'

Screen Shot 2021-02-17 at 16 11 48

Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0 compiler

Hi,
I am getting this message with the sample app:
../CometChatPro-swift-sampleApp/AppDelegate.swift:10:8: Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0 compiler: ../Pods/CometChatPro/CometChatPro.framework/Modules/CometChatPro.swiftmodule/arm64.swiftmodule
Can you help me to start with this please?

Sample cannot run in Xcode 11.4

Describe the bug
The SDK cannot run in XCode 11.4. It is the same issue of jitsi-meet iOS SDK.

To Reproduce
You just need to download XCode 11.4 and run it. The error will pop up.

Attached is the image
Screenshot 2020-04-06 at 9 14 45 AM

App crash when run on real device/simulator(Xcode 11)

I used lasted version of SDK, both v1.8 or v2.0 (Source in Xcode 11 folder). Xcode build successfully but app run on device/simulator crash immediately
These are crash log:
dyld: Library not loaded: @rpath/JitsiMeet.framework/JitsiMeet
Referenced from: /private/var/containers/Bundle/Application/5530BF2A-57F6-4174-A69E-81AD310906E7/CometChatPro-swift-sampleApp.app/Frameworks/CometChatPro.framework/CometChatPro
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/5530BF2A-57F6-4174-A69E-81AD310906E7/CometChatPro-swift-sampleApp.app/Frameworks/JitsiMeet.framework/JitsiMeet: file too short
/private/var/containers/Bundle/Application/5530BF2A-57F6-4174-A69E-81AD310906E7/CometChatPro-swift-sampleApp.app/Frameworks/JitsiMeet.framework/JitsiMeet: file too short
/private/var/containers/Bundle/Application/5530BF2A-57F6-4174-A69E-81AD310906E7/CometChatPro-swift-sampleApp.app/Frameworks/JitsiMeet.framework/JitsiMeet: file too short
/private/var/containers/Bundle/Application/5530BF2A-57F6-4174-A69E-81AD310906E7/CometChatPro-swift-sampleApp.app/Frameworks/JitsiMeet.framework/JitsiMeet: file too short

Build Error

when trying to build the project I got this error

'PiPViewCoordinator' is not a member type of 'JitsiMeet'

Messages do not refresh

Describe the bug
If one user is sending a message if another device has screen turned off, the receiver will not see the message until it reopenes messages view.

To Reproduce
Steps to reproduce the behavior:

  1. On device1, send a message.
  2. On device2, go to messages, message is viewable.
  3. Lock Screen on device2.
  4. On device1 send another message.
  5. Unlock device2, message is missing from the conversation.

Expected behavior
When device is unlocked, messages are pulled.

Actual behavior
When device is unlocked, messages are missing.

Demo Will not build

I am on Xcode 12.1. I downloaded the zip file, loaded the dependencies with pod install. Loaded CometChat Swft. Added the following: appId, apiKey, region. I get the following build error:
Unable to load contents of file list: '/Target Support Files/Pods-CometChatSwift/Pods-CometChatSwift-artifacts-Debug-input-files.xcfilelist'

Any help is appreciated.
Thanks!
hsmith825

Cometchar pod not working on Swift 4.2

Not able to build code after installing Cometchat pod on the project developed on swift 4.2. How can we install cometchat successfully with swift4.2 code ?

giving error as below:
"Module compiled with Swift 5.0 cannot be imported by the Swift 4.2.1 compiler"

No such module 'CometChatPro'

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Actual behavior
A clear and concise description of what you exactly is happening.

Screenshots (optional)
If applicable, add screenshots to help explain your problem.

Enviorment/Platfrom (please complete the following information):

  • iOS Version[ e.g iOS 12.1 ]
  • CometChat SDK Version[ e.g. 1.8.4]

Files (Optional)

  • podfile

Logs (Error Logs)

  • Error Log
  • Debug Log

Additional context
Add any other context about the problem here.

Push notification is not working

I have done the setup as needed in push notification extension and added .p8 file with other necessary detail. Token are updated also successfully for both Push and VOIP separately. But never received push notification, voip is working though.

CometChat.registerTokenForPushNotification(token: "apnsToken" , settings: ["voip":false]) { (success) in
           print("registerTokenForPushNotification voip: \(success)")
         } onError: { (error) in
       print("registerTokenForPushNotification error: \(error)")
         }

Ambiguous use of operator and stored property

**Added sample swift project to app. My UIView's IBDesignables stoped working and showing these following issues:- **

  1. Ambiguous use of operator '=='
  2. Cannot override with a stored property 'cornerRadius'
  3. Cannot override with a stored property 'shadowOpacity',
  4. Cannot override with a stored property 'shadowColor',
  5. Cannot override with a stored property 'shadowOpacity'
  6. Cannot override with a stored property 'shadowRadius'

Please help me in this.
Thanks

Cannot Login

CometChatPro-swift-sampleApp[46732:5466029] Task <826DC470-5648-4BC2-BE14-9635B5A12C03>.<7> HTTP load failed (error code: -1003 [12:8])CometChatPro-swift-sampleApp[46732:5466029] Task <826DC470-5648-4BC2-BE14-9635B5A12C03>.<7> HTTP load failed (error code: -1003 [12:8])CometChatPro-swift-sampleApp[46732:5466029] Task <826DC470-5648-4BC2-BE14-9635B5A12C03>.<7> HTTP load failed (error code: -1003 [12:8])

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.