Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS杀死app之后,点击通知栏里的推送,跳转到指定页面不成功。 #163

Closed
Linspirit98 opened this issue May 30, 2020 · 5 comments

Comments

@Linspirit98
Copy link

杀死app之后,再点击notification的话,跳转到指定页面不成功。如果不杀死app,点击推送的话是可以跳转成功的。

我是在
jpush.addEventHandler(
onOpenNotification: (Map<String, dynamic> message) async
里跳转的。

有人遇到过类似问题吗?
谢谢!

@liraku
Copy link

liraku commented Aug 19, 2020

老哥 你这里 onOpenNotification 的context 是怎么写的,为什么我跳转没有反应

@liraku
Copy link

liraku commented Aug 21, 2020

解决了,无context 跳转

@chenhua1008611
Copy link

解决了,无context 跳转

大兄弟,你这个跳转是怎么解决的呢 ?我这还是不能跳转呢?

@liraku
Copy link

liraku commented Aug 26, 2020

解决了,无context 跳转

大兄弟,你这个跳转是怎么解决的呢 ?我这还是不能跳转呢?

你怎么写的

@raoxudong
Copy link
Contributor

  • 在进程杀死的情况下,点击通知栏可以通过主动调用 getLaunchAppNotification方法获取通知内容,获取到再写跳转代码
  • 在进程未被杀死情况下,点击通知栏可以通过添加 onOpenNotification 方法监听,并获得通知内容,获取到再写跳转代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants