Coder Social home page Coder Social logo

push_service's Introduction

StarTalk push服务

如果您按照后端的部署文档,或者使用我们的一键部署包完成了部署,那么只看这篇文档就可以 完善push能力了,并不需要单独下载和部署任何内容。

IM后端的push服务,支持IOS apns协议推送,android 小米,华为,魅族,oppo厂商推送 push服务支持qtalk消息push,同时也支持接入自己的push服务

能力范围

(因为app push证书在团队内), 此时您需要支付一定的服务器公摊费用,但是肯定比短信便宜的多!详情可以联系我们的客服人员。


共用push系统

对于已经私有化部署的用户来说比较简单,不需要下载,更新服务,只需要按照如下步骤执行即可. 全程只需要修改一个配置文件,重启下服务即可。 一共有四步:

第一步:
$ vim /startalk/tomcat/push_service/webapps/push_service/WEB-INF/classes/app.properties

第二步:
在配置文件中,找到:
qtalk_push_url=

将您收到的邮件或者信息中的公有url填入,填写完成之后应该看起来是这样的:
(没有空格)
qtalk_push_url=https://xxx.xx.com/xxx/push/sendPush.xxx

第三步:
在配置文件中,找到:
qtalk_push_key=

将您收到的邮件或者信息中的push key填入,填写完成之后应该看起来是这样的:
(没有空格)
qtalk_push_key=xxxxxxxx

第四步:
杀掉服务,并重启服务

$./startalk/tomcat/push_service/startup.sh


私有化部署push

全程只需要修改一个配置文件,重启下服务即可。

文件位置在:

/startalk/tomcat/push_service/webapps/push_service/WEB-INF/classes/app.properties

Android和IOS证书配置

如果需要使用服务支持的push,Android需要自己去小米和华为开发平台注册自己应用的app_key,Ios需要生产签名证书,配置如下:

ios push 证书

ios_push_cer_qtalk=线上证书所在路径
ios_push_cer_qtalk_beta=beta证书所在路径

Android配置

adr.qtalk.pkgname=应用包名
adr.mipush.qtalk.key=mipush key(是个文本)
adr.hwpush.qtalk.key=hwpush key(是个文本)

自有push系统

全程只需要修改一个配置文件,重启下服务即可。

文件位置在:

/startalk/tomcat/push_service/webapps/push_service/WEB-INF/classes/app.properties

private.push.url=这里指向您的push服务的接收方法

此时,push服务将作为客户端,将需要发送的push内容推向你现有的push服务器。

你服务器中需要实现上面提到的方法。其中:

http request 的 Header中,

Content-Type:application/json

post body是个json,内容为类似这样的形式:

{
    "From":"ming.xiao",
    "To":"hong.xiao",
    "Body":"明天去哪儿玩儿?",
    "Mtype":1,
    "Message":"xml"
}


#使用QTalk/Startalk客户端的情况如要使用push,需要联系客服配置下面信息
qtalk_push_url=
#使用星语push key
qtalk_push_key=

问题反馈

[email protected](邮件)

push_service's People

Contributors

ccchp avatar may-liu avatar list-processing avatar fantasywxx avatar

Watchers

James Cloos avatar

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.