Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
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
xugenyuan
2024-07-05 19:17:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
203269aa1a68ae878a586efc7956760694e34ad7
203269aa
1 parent
d4c13739
ref |> 解决离线推送点击后,打开App且跳转对应页面问题
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
sight_harmony/features/wdHwAbility/src/main/ets/getuiPush/GetuiPush.ets
sight_harmony/features/wdHwAbility/src/main/ets/getuiPush/GetuiPush.ets
View file @
203269a
...
...
@@ -34,6 +34,7 @@ export class GetuiPush {
private lastPushContent?: PushContentBean
private initialed = false
private hasEnterMain = false
private constructor() {
}
...
...
@@ -59,6 +60,10 @@ export class GetuiPush {
this.cid = cid
this.registerEvents()
this.checkSetup()
if (this.hasEnterMain) {
this.comsumeLastPushContent()
}
},
onFailed: (error:string) => {
Logger.error(TAG, "个推SDK初始化失败,error = " + error)
...
...
@@ -204,11 +209,14 @@ export class GetuiPush {
if (this.initialed) {
this.comsumeLastPushContent()
} else {
this.lastPushContent = undefined
// 这里可能还没来得及初始化完成。所以不能清空
// this.lastPushContent = undefined
}
this.hasEnterMain = true
}
comsumeLastPushContent() {
Logger.debug(TAG, "尝试消费推送: " + this.lastPushContent)
if (!this.lastPushContent) {
return
}
...
...
Please
register
or
login
to post a comment