Toggle navigation
Toggle navigation
This project
Loading...
Sign in
hh_public
/
HHDoctorSDK.ios
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
shmily
2018-09-25 15:22:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4bc1524eaa3b71f9958b3b023ee8406202f9e5ec
4bc1524e
1 parent
33c89e66
update readme
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
12 deletions
README.md
README.md
View file @
4bc1524
...
...
@@ -7,9 +7,10 @@
</p>
*
[
HHDoctorSDK 接入说明
](
#hhdoctorsdk-接入说明
)
*
[
0. 更新日志
](
#0-更新日志
)
*
[
1. 集成方式
](
#1-集成方式
)
*
[
1.1. 手动集成
](
#11-手动集成
)
*
[
1.2. 自动集成(推荐)
](
#12-自动集成
(推荐)
)
*
[
1.2. 自动集成(推荐)
](
#12-自动集成
推荐
)
*
[
1.3. 调用规则
](
#13-调用规则
)
*
[
2. 初始化
](
#2-初始化
)
*
[
3. 登录账户
](
#3-登录账户
)
...
...
@@ -19,9 +20,23 @@
*
[
5. 代理(delegate)(可选)
](
#5-代理delegate可选
)
*
[
5.1. 加入
](
#51-加入
)
*
[
5.2. 移除
](
#52-移除
)
*
[
6. 其他配置
](
#6-其他配置
)
*
[
6.1. APNs
](
#61-apns
)
*
[
6.2. Background Modes
](
#62-background-modes
)
*
[
问题说明
](
#问题说明
)
*
[
支付宝 SDK 冲突
](
#支付宝-sdk-冲突
)
*
[
swift 4.1
](
#swift-41
)
## 0. 更新日志
> 2.0.2
-
适配 Xcode 10, swift4.2
## 1. 集成方式
说明: 接入 HHDoctorSDK 大概会使 ipa 包增加 15M.
HHDoctorSDK 提供两种集成方式:您既可以通过 CocoaPods 自动集成我们的 SDK,也可以通过手动下载 SDK, 然后添加到您的项目中。
我们提供的下载地址:
...
...
@@ -107,17 +122,6 @@ option.cerName = "2cDevTest"
HHMSDK
.
default
.
start
(
option
:
option
)
```
-
APNs 配置
在 appDelegate 中向 SDK 传入 deviceToken 即可。
```
swift
func
application
(
_
application
:
UIApplication
,
didRegisterForRemoteNotificationsWithDeviceToken
deviceToken
:
Data
)
{
HHMSDK
.
default
.
updateAPNS
(
token
:
deviceToken
)
}
```
*注意:需要上传 APNs 的 p12 文件,请联系我们上传。*
## 3. 登录账户
在对医生视频呼叫之前,需要先登录账号信息。账号的 uuid 由和缓提供。
...
...
@@ -265,5 +269,39 @@ HHMSDK.default.remove(delegate: self)
```
## 6. 其他配置
### 6.1. APNs
在 appDelegate 中向 SDK 传入 deviceToken 即可。
```
swift
func
application
(
_
application
:
UIApplication
,
didRegisterForRemoteNotificationsWithDeviceToken
deviceToken
:
Data
)
{
HHMSDK
.
default
.
updateAPNS
(
token
:
deviceToken
)
}
```
*注意:需要上传 APNs 的 p12 文件,请联系我们上传。*
### 6.2. Background Modes
为了支持用户压后台后音视频的正常使用,需要设置 Background Modes。具体设置如下:
```
xxx target -> Capabilities -> Background Modes -> 勾选 Audio,Airplay and Picture in Picture
```
## 问题说明
### 支付宝 SDK 冲突
若出现UTDID冲突错误,请切换支付宝 SDK 到无UTDID版本.
[
官方说明
](
https://docs.open.alipay.com/54/104509/
)
### swift 4.1
master 分支已经支持 swift4.2, 如果需要支持 swift4.1, 请切换到对应分支
`swift4.1`
```
pod 'HHDoctorSDK', :git => "http://code.hh-medic.com/hh_public/HHDoctorSDK.ios.git", :branch => 'swift4.1'
```
...
...
Please
register
or
login
to post a comment