在线集成文档地址：https://cloud.tencent.com/document/product/548/36663。

TPNS iOS SDK ReleaseNote

版本 1.3.4.1
-------------------------------------------
1. 优化：提升了通知栏状态的准确性。
2. 增加：修改了应用内消息API接口

VERSION 1.3.4.1
-------------------------------------------
1. Optimization：Improved the accuracy of notification bar status.
2. Added：Modified the in-app messaging API interface.

版本 1.3.4.0
-------------------------------------------
1. 修复：修复了长链接多次重连后，网络连接偶尔失效的问题。
2. 修复：修复了App跳转导致TPNS在线状态偶尔不准确的问题。
3. 增加：增加了使用应用内消息作为补推的能力。

VERSION 1.3.4.0
-------------------------------------------
1. Fix: Fixed an issue where network connections occasionally failed after tcp connecton was reconnected multiple times.
2. Fix: Fixed an issue where App deeplink caused TPNS online status to be occasionally inaccurate.
3. Added: Added ability to use in-app messages for push message.


版本 1.3.3.0
-------------------------------------------
1. 修复：修复了集群切换没有实时生效的问题。
2. 修复：修复了tag接口频繁调用时，绑定不准确的问题。
3. 优化：升级 SDK deployment target 到 9.0。
4. 优化：提升了"账号绑定"和"注册回调"的性能。
5. 新增：新增了对RestApi的show_type字段的支持，app前台时可以不展示通知。
6. 新增：新增了长连接可支持SSL的能力。
7. 新增：对App启动类型，能区分是由"点击通知"拉起。

版本 1.3.3.0
-------------------------------------------
1. Fix: Fixed issue the switch of cluster does not take effect in real time.
2. Fix: Fixed inaccurate binding issue when the API of tag is called frequently.
3. Optimization: Upgraded the SDK deployment target to 9.0.
4. Optimization: Improved The performance of "Account Binding" and "Registration Callback".
5. Added: Added show_type property in RestApi, which can make the app do not display notifications in the foreground.
6. Added: Added SSL support for TCP connection.
7. Added: Added "click on notification" enum for app startup type.

版本 1.3.2.1
-------------------------------------------
1. 修复：Xcode 12.5下, 引用TPNSInAppMessage.framework的兼容性问题。
2. 修复：用户iCloud备份还原，两台设备具有同样TPNS Token问题。
3. 优化：切换了新集群环境的话，旧集群产生的日志不上报。
4. 增加：手机号码绑定接口，用于普通短信及智能短信发送。
5. 增加：账号绑定接口升级，新增多种预设账号类型。
6. 增加：Demo演示了"用户允许协议"后才进行Push通知弹窗的方法。
7. 增加：对startXGWithAccessID接口的错误调用，进行了日志提示。
8. 增加：对第三方SDK对appdelegate的hook冲突，进行了日志提示。
9. 删除：若干在生产环境下，不必要的日志提示。

VERSION 1.3.2.1
-------------------------------------------
1. FIX: The compatibility issue of ‘TPNSInAppMessage.framework’ under Xcode 12.5
2. FIX: The same TPNS Token problem on two different devices when user backup and restore in iCloud. 
3. IMPROVEMENT: The logs generated by the old cluster will not report after we switch to a new cluster environment.
4. NEW FEATURE: Mobile phone number binding interface for ordinary SMS and smart SMS send.
5. NEW FEATURE: Account binding interface upgrade, new multiple preset account types.
7. NEW FEATURE: The way to setup “pop-up Push notification window only after ‘User Allowed Agreement’ ” is demonstrated in demo app.
7. NEW FEATURE: Log prompts for wrong call of startXGWithAccessID interface.
8. NEW FEATURE: Log prompts for conflicts of AppDelegate hook between TPNS and the third-party SDK.
9. DELETED FEATURE: Unnecessary log prompts in the production environment.

版本 1.3.1.1
-------------------------------------------
1. 修复：GCDAsync库可能导致的编译冲突。

VERSION 1.3.1.1
-------------------------------------------
1.  FIX：Possible compilation conflicts caused by the GCDAsync library.


版本 1.3.1.0
-------------------------------------------
1. 修复：TPNS自建通道和APNs通道的播放声音规则不一致问题。
2. 修复：切换集群时，云控下发加密字段失效的问题。
3. 修复：偶现的统计日志上报失败问题。
4. 修复：覆盖消息功能，带thread-id的通知可能覆盖失败的问题。
5. 优化：部分错误日志的提示文案。
6. 优化：提高终端对TPNS Token的环境校验的准确性。
7. 优化：自动补发在TPNS网络连接失败时设置的角标数。
8. 优化："静默消息"的抵达上报更及时。
9. 增加：查询标签功能。
10. 增加：申请通知权限的回调。
11. 增加：TPNS通道支持thread_id消息分组。
12. 增加：Demo新增全球集群切换的示例代码。
13. 增加：TPNS网络连接的建连成功和断开回调。

VERSION 1.3.1.0
-------------------------------------------
1. FIX：Inconsistent rules of playing sound between TPNS channel and APNs channel.
2. FIX：Invalid Encrypted Info delivered by Cloud Control when we change cluster.
3. FIX：Occasional statistical log report failure problem.
4. FIX：Override message function, notification with thread-id may override failed issue.
5. IMPROVEMENT：Some error log tips.
6. IMPROVEMENT：Check TPNS Token environment more accurately
7. IMPROVEMENT：Automatically resend the badge number failed to set that caused by TPNS network issues.
8. IMPROVEMENT：The arrival of "silent push notification" is reported more promptly
9. NEW FEATURE：Query tags.
10. NEW FEATURE：Callback for request notification permission.
11. NEW FEATURE：TPNS channel supports thread_id message grouping.
12. NEW FEATURE：Add sample code for global cluster switching in demo app.
13. NEW FEATURE：Connected and disconnected callbacks for TPNS network connections.

版本 1.3.0.0
-------------------------------------------
1. 修复：多线程时和低内存下的小概率crash的问题
2. 优化：减少不必要的MQTT网络超时检测
3. 优化："抵达"的上报支持更高性能的方式
4. 优化：减少"应用内消息"插件包体积
5. 优化：对获取TPNS token的请求进行加密
6. 增加：账号、标签、用户属性接口的参数检查逻辑和错误回调
7. 删除：账号类型枚举，由业务自己定义

VERSION 1.3.0.0
-------------------------------------------
1.  FIX：Small probability of crash under multithreading or low memory
2.  IMPROVEMENT：Reduce the count of detection for unnecessary MQTT network timeout
3.  IMPROVEMENT：Take a higher performance approach for the "arrival" report
4.  IMPROVEMENT：Reduce the size of the "In-App Messaging" plugin package
5.  IMPROVEMENT：Encrypt the request to obtain TPNS token
6.  NEW FEATURE：Add parameter check logic and error callback for account, tag, and user-attribute interfaces
7.  DELETED FEATURE：Delete account type enumeration, let the business define itself


版本 1.2.9.0
-------------------------------------------
1. 修复：富媒体通知可能下载图片失败的问题。
2. 修复：在App后台时，TPNS通道可能在线的问题。
3. 修复：1.2.5.2以前版本，可能出现TPNS token重复的问题。
4. 修复：可能建立长连接失败的问题。
5. 修复："应用内消息"和个别SDK命名冲突的问题。
6. 优化：本地缓存的性能。
7. 优化：App通知开关状态的上报时机。
8. 优化：弱网下的长连接处理机制。
9. 优化：账号相关接口。
10. 优化：TPNS Demo的代码示例
11. 增加：本地通知功能。
12. 增加：对ipv6的支持。
13. 删除：对免费版的兼容代码。

VERSION 1.2.9.0
-------------------------------------------
1. FIX：Rich media notification may fail to download pictures.
2. FIX：The TPNS channel may be online while the App is background.
3. FIX：If sdk version is less than 1.2.5.2, TPNS token duplication may occur.
4. FIX：It may fail to establish a long connection.
5. FIX："In-Application Messages" and some individual SDK naming conflicts.
6. IMPROVEMENT：Local cache performance.
7. IMPROVEMENT：Reporting timing when app notification status switch.
8. IMPROVEMENT：Long connection processing mechanism in weak network.
9. IMPROVEMENT：Account related interface.
10. IMPROVEMENT：TPNS Demo's code example.
11. NEW FEATURE：Local notification function.
12. NEW FEATURE：Ipv6 support.
13. DELETED FEATURE: Compatible code for the XinGe's free version.


VERSION 1.2.8.1
-------------------------------------------
1. 修复已知问题

版本 1.2.8.1
-------------------------------------------
1. Fixed known issues
VERSION 1.2.8.0
-------------------------------------------
1. Added  "user attributes"  for personalized push
2. Added  "in-app messaging"  , we provide several templates
3. Fixed known issues

版本 1.2.8.0
-------------------------------------------
1. 新增「用户属性」相关接口，用于个性化推送
2. 新增「应用内消息」功能，以及若干应用内消息模板
3. 修复已知问题


VERSION 1.2.7.2
-------------------------------------------
1. Added custom event reporting
2. Increased the success rate of reporting  "arrivals"
3. Fixed known issues

版本 1.2.7.2
-------------------------------------------
1. 增加自定义事件上报功能
2. 增加"抵达数"上报的成功率
3. 修复已知问题

VERSION 1.2.7.1
-------------------------------------------
1. Reduced SDK startup time
2. Added new callback interface in case of registration failure
3. Optimized account and label interface
4. Fixed known issues

版本 1.2.7.1
-------------------------------------------
1. 减少 SDK 启动耗时
2. 新增注册失败的回调接口
3. 优化账号、标签接口
4. 修复已知问题
VERSION 1.2.6.1
-------------------------------------------
1. Improve stability, fix known issues caused by SDK

版本 1.2.6.1
-------------------------------------------
1. 提升稳定性，修复已知问题

VERSION 1.2.6.0
-------------------------------------------
1. Optimize access by adding a new registration callback
2. Added TPNS channel to send messages
3. Optimize data statistics
4. Fixed known issues

版本 1.2.6.0
-------------------------------------------
1. 优化接入，新增注册回调方法
2. 新增自建通道，支持TPNS通道下发消息
3. 优化数据统计
4. 修复已知问题

VERSION 1.2.5.4
-------------------------------------------
* Improve stability, fix known issues caused by SDK
	
版本 1.2.5.4
-------------------------------------------
* 提升稳定性，修复已知问题

VERSION 1.2.5.3
-------------------------------------------
* Support unregistration tokens for free clusters to prevent repeated pushes
* Support replacing duplicate messages in notification extensions

版本 1.2.5.3
-------------------------------------------
* 支持对信鸽免费集群进行反注册token，防止重复推送
* 新增支持在通知扩展中对重复的消息进行替换


VERSION 1.2.5.2
-------------------------------------------
* Improve accurate push, add enumeration of account types
* Improve stability, optimize log IO exception and iOS10 receive message callback exception

版本 1.2.5.2
-------------------------------------------
* 提升精准推送，新增账号类型的枚举
* 提升稳定性，优化日志IO异常和iOS10接收消息回调异常的问题


VERSION 1.2.5.1
-------------------------------------------
* Simplified SDK access, delete reporting API, SDK handles it automatically
* Improve stability, fix crash caused by SDK Cache

版本 1.2.5.1
-------------------------------------------
* 简化接入，删除上报接口，SDK自动处理
* 提升稳定性，修复缓存模块引发的Crash问题


VERSION 1.2.4.9
-------------------------------------------
* Improve stability, fix crash caused by message statistics and a memory leak
* Optimize SDK compatibility

版本 1.2.4.9
-------------------------------------------
* 提升稳定性，修复消息统计触发的崩溃问题和一处内存泄露问题
* 优化提升SDK兼容性

VERSION 1.2.4.8
-------------------------------------------
* Improve stability, fix crash caused by message statistics
版本 1.2.4.8
-------------------------------------------
* 提升稳定性，修复消息统计触发的崩溃问题

VERSION 1.2.4.7
-------------------------------------------
* Improve stability, fix crash caused by message statistics and log statistics
版本 1.2.4.7
-------------------------------------------
* 提升稳定性，修复消息统计和日志记录触发的崩溃问题


VERSION 1.2.4.6
-------------------------------------------
* Optimize SDK registration process and improve registration success rate
* Optimize rich media push, support resources without suffix
* Fix other known issues

版本 1.2.4.6
-------------------------------------------
* 优化SDK注册流程，提升注册成功率
* 优化富媒体推送，支持无后缀名的资源
* 修复其他已知问题


VERSION 1.2.4.5
-------------------------------------------
* Add SDK crash monitor
* Optimize message arrival statistics
* Optimize device count statistics
* Optimize SDK I/O performance
* Optimize and improve SDK stability


版本 1.2.4.5
-------------------------------------------
* SDK增加Crash监控
* 优化抵达数据统计
* 优化累计设备量统计
* 优化SDK I/O性能
* 优化提升SDK稳定性



VERSION 1.2.4.4
-------------------------------------------
* Optimize the SDK registration process and improve the reach of notification messages

版本 1.2.4.4
-------------------------------------------
* 优化SDK注册流程，提升通知消息触达


VERSION 1.2.4.3
-------------------------------------------
* Optimize SDK compatibility

版本 1.2.4.3
-------------------------------------------
* 优化提升SDK兼容性

VERSION 1.2.4.2
-------------------------------------------
* fix a bug about obtaining the TPNS Token

版本 1.2.4.2
-------------------------------------------
* 修复SDK获取TPNS Token的Bug

VERSION 1.2.4.1
-------------------------------------------
* Add a log upload API
* Optimize and improve SDK stability
* Optimize SDK compatibility

版本 1.2.4.1
-------------------------------------------
* 新增日志上传接口
* 优化提升SDK稳定性
* 优化提升SDK兼容性

VERSION 1.2.4.0
-------------------------------------------
* Fix the problem of single account binding callback
* Improve SDK compatibility with third parties Notification Plugin
* Newly differentiated device push environment to optimize statistics
* Optimize the cache logic for replacing App information
* Improve SDK registration success rate


版本 1.2.4.0
-------------------------------------------
* 修复单账号绑定回调的问题
* 提升SDK与第三方的兼容性
* 新增区分设备推送环境，从而优化统计数据
* 优化更换App信息的缓存逻辑
* 提升SDK注册成功率

VERSION 1.2.3.0
-------------------------------------------
* Fix a bug about DeviceToken changed

版本 1.2.3.0
-------------------------------------------
* 修复一个当设备Token变化时出现的bug


VERSION 1.2.2.1
-------------------------------------------
* Fix a bug about network connecting when other apis are called before SDK starting

版本 1.2.2.1
-------------------------------------------
* 修复一个当SDK未启动完成就调用其他接口而产生的网络连接的Bug


VERSION 1.2.2.0
-------------------------------------------
* Fix a bug about registering device to the TPNS server on iOS13
* Fix a bug about network connecting when the App status changed

版本 1.2.2.0
-------------------------------------------
* 修复iOS13上无法注册的问题
* 修复App状态切换时的网络连接的问题


VERSION 1.2.1.2
-------------------------------------------
* Fix a bug about clicking message statistics

版本 1.2.1.2
-------------------------------------------
* 修复点击数据统计bug


VERSION 1.2.1.1
-------------------------------------------
* 修复标签绑定接口在网络连接状态变化时存在的bug

VERSION 1.2.1.0
-------------------------------------------
* 新增查询信鸽服务生成的Token接口
* 修复单账号绑定失败的问题

VERSION 1.2.0.0
-------------------------------------------
* 新增独立上报数据SDK
* 优化终端注册服务
* 更新DeviceToken解析逻辑

VERSION 1.1.0.1
-------------------------------------------
* 修复用户名和密码认证逻辑
* 修复动态加载SDK的缺陷

VERSION 1.1.0.0
-------------------------------------------
* 增加PushKit插件
* 优化SDK启动耗时


VERSION 1.1.0.0
-------------------------------------------
* 增加长连接的推送


 VERSION 1.1.0.0
-------------------------------------------
* 增加对PushKit的插件化支持，目前功能仅限注册，注销，上报


 VERSION 1.0.0.0
-------------------------------------------
* 初始版本
