Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm committed Jul 5, 2024
1 parent 17f8272 commit 75674ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/pages/docs/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ interface PushyContext {

#### async function checkUpdate()

触发更新检查,更新`usePushy`中的`updateInfo`,返回值有三种情形:
触发更新检查,更新`usePushy`中的`updateInfo`(注意`checkUpdate`方法本身没有返回值),返回值有三种情形:

1. `{expired: true}`:该应用原生包已过期(三种情况:1. 主动设置为过期状态,2. 主动删除,3. 从未上传),需要引导用户下载或跳转到应用市场(需要在网页管理端设置中填写`downloadUrl`)。如需在应用内执行 apk 更新,还需配置[安装权限](/docs/api#async-function-downloadandinstallapkurl)

Expand Down
2 changes: 1 addition & 1 deletion site/pages/docs/integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function App() {
}
```
其中`checkUpdate`方法可以用来手动触发更新检查。检查后会更新返回的[`updateInfo`](api#async-function-checkupdateappkey),有三种情况:
其中`checkUpdate`方法可以用来手动触发更新检查。检查后会更新`usePushy`返回的[`updateInfo`](api#async-function-checkupdateappkey)(注意`checkUpdate`方法本身没有返回值),有三种情况:
1. `{expired: true}`:该应用原生包已过期(三种情况:1. 主动设置为过期状态,2. 主动删除,3. 从未上传),开发者应该在 pushy 的管理后台添加一个更新下载链接,并自行提示用户下载。如需在应用内执行 apk 更新,还需配置[安装权限](/docs/api#async-function-downloadandinstallapkurl)。
Expand Down

0 comments on commit 75674ef

Please sign in to comment.