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-06-20 11:03:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ef442da80fc6728c164a1de7bdb49193a4ee913b
ef442da8
1 parent
a143135e
README
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
README.md
README.md
View file @
ef442da
...
...
@@ -90,6 +90,7 @@ HHSDKOptions 选项参数列表
------|---|--------
isDevelopment|Bool|服务器模式(测试/正式)
isDebug|Bool|调试模式(是否打印日志)
APNs|String |推送证书名(由和缓生成)
hudManager| HHHUDable|自定义 progressHUD
hudDisTime| Double|hud 自动消失时间
...
...
@@ -97,6 +98,7 @@ hudDisTime| Double|hud 自动消失时间
```
swift
let
option
=
HHSDKOptions
(
isDebug
:
true
,
isDevelop
:
true
)
option
.
cerName
=
"2cDevTest"
// let option = HHSDKOptions()
// option.isDevelopment = true
// option.isDebug = true
...
...
@@ -104,6 +106,16 @@ let option = HHSDKOptions(isDebug: true, isDevelop: true)
HHMSDK
.
default
.
start
(
option
:
option
)
```
-
APNs 配置
在 appDelegate 中向 SDK 传入 deviceToken 即可。
```
swift
func
application
(
_
application
:
UIApplication
,
didRegisterForRemoteNotificationsWithDeviceToken
deviceToken
:
Data
)
{
HHMSDK
.
default
.
updateAPNS
(
token
:
deviceToken
)
}
```
## 3. 登录账户
在对医生视频呼叫之前,需要先登录账号信息。账号的 uuid 由和缓提供。
### 3.1. 登录
...
...
Please
register
or
login
to post a comment