融云即时通 :消息推送篇

融云即时通 :消息推送篇,第1张

RongIM 消息推送 分为二类:

1远程推送:指 程序在后台 2分钟后被杀死,通过远程推送方式,实现消息通知

2本地推送:程序在后台存活时,若有消息,将以本地推送方式通知

实现消息推送步骤:

第一步:配置证书 上传P12 证书

具体方式 见: >

当你的iPhone收到推送信息后到底会发生什么呢?总共有三种可能性: app在前台运行 接收到推送信息时屏幕上不会有任何显示,也不会有提示音,但你的appdelegate会收到这个推送信息。你可以在这里加入代码来处理接收到的信息。 app不在前台运行。

注册消息

注册消息共分为四步。

(1)自定义消息集成自RCMessageContent

(2)遵循RCMessageCoding协议

RCMessageCoding 主要有三个功能:

摘要

(3) 内容摘要协议

协议原型:

RCMessageContentView 主要有一个功能:

设置消息摘要:

开发者在进行完自定义消息类后,需要在 SDK init 之后,注册此自定义消息类。

开发者可根据自己的业务需求是否需要显示用户信息来选择继承消息 Cell。

类名:

1

结构图:

控件需要添加在 baseContentView 上,建议在 baseContentView 上方预留 10

类名:

1

结构图:

控件需要添加在 messageContentView 上,根据需求在画 Cell 视图布局的时候调整 messageContentView 的 frame ,如果是接收方,只需要修改 messageContentView 的 width 和 height ,如果是发送方,需要修改 messageContentView 的 x 、 width 和 height 。

开发者需要在 Cell 的初始化中布局,并重写下面方法来返回 Cell 的 Size 。当显示自定义消息时,必须实现该方法来返回 Cell 的 Size 。

注册消息 Cell

SDK 需要开发者在会话页面注册您定义的消息 Cell 并绑定您的消息类型

①在自定义cell中添加tap点击事件,

②实现tap事件,在tap事件中判断代理是否实现了如下方法,

③调用SDK中的cell点击事件回调

在如上方法中添加自定义cell的点击事件

2 Internal Use License and Restrictions

21 Permitted Uses and Restrictions; Program services

Subject to the terms and conditions of this Agreement, Apple hereby grants You during the Term,

a limited, non-exclusive, personal, revocable, non-sublicensable and non-transferable license to:

(a) Install a reasonable number of copies of the Apple Software on Apple-branded computers

owned or controlled by You, to be used internally by You or Your Authorized Developers for the

sole purpose of developing or testing Your Covered Products, except as otherwise expressly

permitted in this Agreement;

(b) Make and distribute a reasonable number of copies of the Documentation to Authorized

Developers for their internal use only and for the sole purpose of developing or testing Your

Covered Products, except as otherwise expressly permitted in this Agreement;

(c) Install Provisioning Profiles on each of Your Authorized Test Units, up to the number of

Authorized Test Units that You have acquired licenses for, to be used internally by You or Your

Authorized Developers for the sole purpose of developing and testing Your Covered Products,

except as otherwise expressly permitted in this Agreement;

(d) Distribute Provisioning Profiles only to Your Employees and only in conjunction with Your

Internal Use Applications (excluding Internal Use Applications for Apple TV) for the purpose of

developing and testing Your Internal Use Applications (excluding Internal Use Applications for

Apple TV);

(e) Distribute Provisioning Profiles only to Your Employees and/or Permitted Users in conjunction

with Your deployment of Your Internal Use Applications (excluding Internal Use Applications for

Apple TV) on Deployment Devices for internal use by Your Employees and/or Permitted Users;

(f) Allow Your Customers to use Your Internal Use Applications (excluding Internal Use

Applications for Apple TV) on Deployment Devices, but only (i) on Your physical premises and/or

on Your Permitted Entity’s physical premises, or (ii) in other locations, provided all such use is

under the direct supervision and physical control of Your Employees or Permitted Users (eg, a

sales presentation to a Customer); and

(g) Incorporate the Apple Certificates issued to You pursuant to this Agreement for purposes of

digitally signing Your Internal Use Applications, Passes, Safari Push Notifications, and as

otherwise expressly permitted by this Agreement

Enterprise Agreement Page 8

For clarity, Internal Use Applications developed for Apple TV may not be distributed under this

Agreement, except for limited deployment on Authorized Test Units for testing and development

purposes only Except as set forth in Section 21, You may not use, distribute or otherwise make

Your Internal Use Applications available to Your Customers or to any third parties in any way

(excluding Your Internal Use Application that is for use on OS X) You may permit Your

Permitted Entity to deploy Your Internal Use Applications to Permitted Users on Your behalf,

provided that such deployment is at least as restrictive and protective of Apple as the terms of

this Agreement (eg, posting the App on a public website or non-authenticated server would be

prohibited) Any actions undertaken by Your Permitted Entity in relation to such deployment

and/or arising out of this Agreement shall be deemed to have been taken by You, and You (in

addition to Your Permitted Entity) shall be responsible to Apple for all such actions Apple

reserves the right to set the limited number of devices that each Licensee may register as an

Authorized Test Unit and obtain licenses for under this Program

Apple may provide access to services by or through the Program for You to use with Your

developer account (eg, device or app provisioning, managing teams or other account

resources) You agree to access such services only through the Program web portal (which is

accessed through Apple’s developer website) or through Apple-branded products that are

designed to work in conjunction with the Program (eg, OS X Server, Xcode) You agree not to

create or attempt to create a substitute or similar service through use of or access to the services

provided by or through the Program Further, You may only access such services using the

Apple ID associated with Your developer account Except as otherwise expressly permitted

herein, You agree not to share, sell, resell, rent, lease, lend, or otherwise provide access to Your

developer account or any services provided therewith, in whole or in part, to anyone who is not an

Authorized Developer on Your team, and You understand that each team member must have

their own Apple ID to access Your account To the extent that You own or control an Applebranded

computer running Apple’s OS X Server or Xcode Server ("Server") and would like to use

it for Your own development purposes in connection with the Program, You agree to use Your

own Apple ID for such Server, and You shall be responsible for all actions performed by such

Server

//////

You may permit Your

Permitted Entity to deploy Your Internal Use Applications to Permitted Users on Your behalf,

provided that such deployment is at least as restrictive and protective of Apple as the terms of

this Agreement (eg, posting the App on a public website or non-authenticated server would be

prohibited)

以上就是关于融云即时通 :消息推送篇全部的内容,包括:融云即时通 :消息推送篇、融云即时通如何删文件、融云即时通讯 ios 收到推送后 点击通知栏进入页面,出现d框 alert,怎么去掉它等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/9645832.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-30
下一篇 2023-04-30

发表评论

登录后才能评论

评论列表(0条)

保存