[置顶] GoBelieve IM 消息推送的方案

摘要: 消息推送设计方案如下: 所有接入im SDK的deviceTOken都会存储到IM服务器。就可以 IM服务器来根据你们服务器指定的useId来下发消息。判断客户端在线,并且APP在前台。就是socket下发,IM 消息。如果客户端不在线,或者APP在后台,就走推送(安卓是第三方推送,IOS是apns 阅读全文

posted @ 2017-05-21 00:07 nuanshou 阅读(2769) 评论(0) 推荐(0) 编辑

2023年1月16日

Spring-正确使用AOP

摘要: 正确使用AOP,我们需要一个避坑指南: 访问被注入的Bean时,总是调用方法而非直接访问字段; 编写Bean时,如果可能会被代理,就不要编写public final方法。 这样才能保证有没有AOP,代码都能正常工作。 阅读全文

posted @ 2023-01-16 23:48 nuanshou 阅读(13) 评论(0) 推荐(0) 编辑

2022年1月5日

XCode13,工程真机正常运行和打包,模拟器运行失败问题,Class _NSZombie_NSURLSessionTaskMetrics is implemented in both

摘要: XCode13,工程真机正常运行和打包,模拟器运行失败问题,卡在launch.storyboard不动,暂停程序后,执行点在[self.window makeKeyAndVisable]; 控制台输出: GuardMalloc[XXXXXXXX-11177]: Allocations will be 阅读全文

posted @ 2022-01-05 15:37 nuanshou 阅读(764) 评论(0) 推荐(0) 编辑

2021年10月11日

xib文件转NIb文件

摘要: xib文件转NIb文件 使用方法:sh ./nib.sh ./ #!/bin/bash # # # 获取文件名后缀 # Parameter1: 文件名 # output: Yes # return: None # # function FileSuffix() { local filename="$ 阅读全文

posted @ 2021-10-11 12:00 nuanshou 阅读(173) 评论(0) 推荐(0) 编辑

2021年9月18日

WKWebView注入VConsole.js

摘要: 1.VConsoleInit.js //VConsoleInit.js var a = function run() { var head = document.getElementsByTagName('head')[0]; var scripts = head.getElementsByTagN 阅读全文

posted @ 2021-09-18 10:32 nuanshou 阅读(530) 评论(0) 推荐(0) 编辑

2021年8月12日

iOS Team Inhouse Provisioning Profile 刷新过期时间问题

摘要: iOS Team Inhouse Provisioning Profile 是xcode自动生成的?为什么不会自动更新时间? 问题已解决: Inhouse profile是xcode自动管理的,开发网站上看不到,只有改工程里的target->capabilities,增加减少APP的能力,被动刷新i 阅读全文

posted @ 2021-08-12 14:21 nuanshou 阅读(254) 评论(0) 推荐(0) 编辑

2020年7月24日

cordova工程ios打包自动编译打包,自动签名失败

摘要: cordova ios build profile 阅读全文

posted @ 2020-07-24 14:20 nuanshou 阅读(190) 评论(0) 推荐(0) 编辑

2019年8月27日

GoBelieve service部署问题整理

摘要: 阅读全文

posted @ 2019-08-27 13:48 nuanshou 阅读(304) 评论(0) 推荐(0) 编辑

2019年3月18日

Token生成(转载)

摘要: package main import ( "encoding/base64" "encoding/json" "log" "net/http" "strconv" "strings" "github.com/go-redis/redis" "github.com/satori/go.uuid" ) type objMessa... 阅读全文

posted @ 2019-03-18 16:40 nuanshou 阅读(314) 评论(0) 推荐(0) 编辑

2019年3月11日

ios的framework合并

摘要: # 运行此脚本前 # 先编译一遍工程 确保正常运行 没有报错 # 作为Xcode Aggregate运行 # file-->new target-->cross-platform-->Aggregate #!/bin/sh UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal WORKSPA... 阅读全文

posted @ 2019-03-11 10:08 nuanshou 阅读(841) 评论(0) 推荐(0) 编辑

2019年3月7日

Gobelieve 架构(转载)

摘要: Gobelieve 架构 Gobelieve github地址 im 客户连接服务器 (可分布式部署,暂无负载均衡模块) imr 路由查询服务器(主要解决im分布式部署的问题) ims 存储服务器 (主从部署) 基础模块 1.数据包协议 包:header(12)|body header:len(4) 阅读全文

posted @ 2019-03-07 21:52 nuanshou 阅读(1035) 评论(0) 推荐(0) 编辑

导航