Git Product home page Git Product logo

im_ios's Issues

GroupMessage 发送不了

发送群消息一直在 loading, 对方也无法收到消息.

  • (BOOL)sendGroupMessage:(IMMessage *)im {
    Message *m = [[Message alloc] init];
    m.cmd = MSG_GROUP_IM;
    m.body = im;
    BOOL r = [self sendMessage:m];

    if (!r) return r;
    [self.groupMessages setObject:im forKey:[NSNumber numberWithInt:m.seq]];

    //在发送需要回执的消息时尽快发现socket已经断开的情况
    [self ping];

    return r;
    }

看到 [self sendMessage:m] 返回是成功的.

消息列表如何管理

如何获取与所有人聊天的最后一条消息以及管理未读数,要自己加的吗?

奔溃

断开连接的时候, 就会奔
Snip20211208_74

Demo 在iPhone8P iOS13.2.2 点击输入框无反应

在iPhone8P iOS13.2.2 点击输入框无反应 ,toolbar 上任何按钮点击均无反馈 项目im_demo
虚拟机也没有反应,用jsDemo发送消息接收不到,安卓Demo可以接收
后台Log日志
2020-01-02 16:38:05.439311+0800 im_demo[32473:2455327] tcp connect host:imnode2.gobelieve.io host ip:115.28.44.59
2020-01-02 16:38:05.481029+0800 im_demo[32473:2455327] socket writable
2020-01-02 16:38:05.481633+0800 im_demo[32473:2455327] suspend write source
2020-01-02 16:38:05.481966+0800 im_demo[32473:2455327] ssl handshake continues...
2020-01-02 16:38:05.516389+0800 im_demo[32473:2455327] socket readable
2020-01-02 16:38:05.625811+0800 im_demo[32473:2455327] ssl handshake error:-9807
2020-01-02 16:38:05.625998+0800 im_demo[32473:2455327] tcp connect err
2020-01-02 16:38:05.626179+0800 im_demo[32473:2455327] im service on close
2020-01-02 16:38:05.626306+0800 im_demo[32473:2455327] cancel write source
2020-01-02 16:38:05.626429+0800 im_demo[32473:2455327] cancel read source
2020-01-02 16:38:05.627131+0800 im_demo[32473:2455327] close socket
2020-01-02 16:38:05.627674+0800 im_demo[32473:2455327] start connect timer:13
2020-01-02 16:38:05.627867+0800 im_demo[32473:2455327] async tcp dealloc
2020-01-02 16:38:05.628092+0800 im_demo[32473:2455327] async tcp closed

pod search 还找不到,可以发布上去么?

- NOTE  | [iOS] [gobelieve/imlib] xcodebuild:  gobelieve/imlib/db/SQLPeerMessageDB.m:2:9: fatal error: 'NSString+JSMessagesView.h' file not found
- NOTE  | [iOS] [gobelieve/imlib] xcodebuild:  gobelieve/imlib/db/SQLGroupMessageDB.m:11:9: fatal error: 'NSString+JSMessagesView.h' file not found

依赖应该有问题。

  • 将 NSString+JSMessagesView.h 和 NSString+JSMessagesView.h 移动到 imsdk 目录下即可。
  • 将 FileCache.h 和 FileCache.m 移动到 imsdk 目录下
  • 需要将 imkit 的配置进行修改
s.subspec 'imsdk' do |sp|
     sp.public_header_files = 'Classes/imsdk/*.h'
     sp.source_files        = 'Classes/imsdk/*.{h,m,c}'
     sp.pod_target_xcconfig = {
       'OTHER_LDFLAGS' => '-ObjC'
     }
 end

 s.subspec 'imlib' do |sp|
    sp.source_files     = 'Classes/imlib/**/*.{h,m,c}'
    sp.dependency 'flt_im_plugin/imsdk'
    sp.dependency 'SDWebImage', '~> 5.1.0'
    sp.dependency 'FMDB', '~> 2.7.0'
    sp.dependency 'Masonry', '~>1.1.0'
 end

 s.subspec 'imkit' do |sp|
   sp.vendored_libraries = 'Classes/imkit/amr/*.a'
   sp.source_files     = 'Classes/imkit/**/*.{h,m,c}'

   sp.resource         = [
     'Classes/imkit/imKitRes/sounds/*.aiff',
     'Classes/imkit/imKitRes/gobelieve.xcassets',
     'Classes/imkit/imKitRes/Emoji.xcassets',
     'Classes/imkit/imKitRes/gobelieve.db'
   ]

   sp.pod_target_xcconfig = {
       'OTHER_LDFLAGS' => '$(inherited) -all_load'
   }

   sp.dependency 'flt_im_plugin/imsdk'
   sp.dependency 'flt_im_plugin/imlib'

   sp.dependency 'SDWebImage', '~> 5.1.0'
   sp.dependency 'Toast', '~> 4.0.0'
   sp.dependency 'MBProgressHUD', '~> 0.9.1'
   sp.dependency 'FMDB', '~> 2.7.0'
   sp.dependency 'Masonry', '~>1.1.0'
 end

求助(紧急)

MBProgressHUD这个依赖的版本能不能升级一下, 这个依赖的版本太低了,之前使用的大面积报错了

建议

建议你们 弄一个开源社区一样的东西 在开通一个 捐赠功能 在搞一个qq群大家一起交流 标示对你们开源的支持 我愿意捐赠 200 刚刚开始学GO语言

反复进入ios项目会闪退,模拟器上是使用home键来回切换

2020-04-28 15:06:03.866026+0800 im_demo[6887:157696] [Snapshotting] Snapshotting a view (0x7f9a8b062a00, UIKeyboardImpl) that has not been rendered at least once requires afterScreenUpdates:YES.
2020-04-28 15:06:04.505572+0800 im_demo[6887:157696] im service enter background
2020-04-28 15:06:04.505984+0800 im_demo[6887:157696] suspend im service
2020-04-28 15:06:04.507445+0800 im_demo[6887:157696] im service on close
2020-04-28 15:06:04.508024+0800 im_demo[6887:157696] cancel write source
2020-04-28 15:06:04.508131+0800 im_demo[6887:157696] cancel read source
2020-04-28 15:06:04.509042+0800 im_demo[6887:157696] close socket
2020-04-28 15:06:04.687546+0800 im_demo[6887:157696] im service enter foreground
2020-04-28 15:06:04.687678+0800 im_demo[6887:157696] resume im service
并无详细报错:
代码断点卡在 AsyncSSLTCP.m
OSStatus status = SSLHandshake(self.sslContext);
Thread 6: EXC_BAD_ACCESS (code=1, address=0x48)

遇到问题:退出程序或者删除程序,聊天记录全部清空

  1. 操作的代码: 运行程序以im_ios的im_demo做测试
  2. 遇到问题: 退出程序或者删除程序,聊天记录全部清空
  3. 请解决: 目前测试的是单聊, 但是希望“客服和单聊”(im_demo和customer_demo)都可以解决这个问题。 因为之后我们会用到这两个。 如果这个问题不解决, 相当于客户和顾客的聊天记录是无法保存的, 那么相当于有纠纷的时候, 我们无法把聊天作为解决问题的资料。
    拿淘宝做演示,无论是退出程序再次打开, 还是删除程序再次安装,聊天记录都是存在的。
  4. 我们自己的努力部分: 我们自己做了测试,我们的服务器im_server搭建成功了,数据库和表单都存在,但是记录无法保存。考虑到server的原码是go语言, 请解决这个错误, 并且更新到github上面。
    谢谢。

找不到头文件

imkit/MessageListViewController.h

File not found

居然报这个错, 我也是崩溃。 明明里面有这个文件

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.