当用户点击被杀死状态时,FLUTTER FCM推送通知显示空白屏幕
当用户点击应用程序的终止状态时,它将打开空白屏幕并粘在此屏幕上,当应用在后台时,它将在Desire屏幕中浏览用户,因此我在“杀死状态”中遇到问题,应用程序会粘在用户点击推送通知时空白屏幕。
When user tap on push notification in termination state of app then it will open blank screen and app stuck on this screen and when app is in background then it will navigate the user in desire screen so I face issue in killed state that app will stuck on blank screen when user tap on push notification.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于App Active态和背景状态,将存在小部件树并导航到校正屏幕。当处于杀死状态时,该路线将不存在并试图导航到该屏幕。我遇到了同样的问题,发现这是主要原因。
我尝试使用捕获块来捕获异常,并避免零指针异常。因此,初始路由屏幕现在正在加载而没有白色屏幕。
For app active state and background state, widget tree will be exist and navigating to correct screen. When in killed state, that route will not exists and trying to navigate to that screen..So it got null exception, results in blank screen. I got same issue and found this as main cause.
I used try and catch block to catch exception and avoid null pointer exception. So initial route screen is loading without white screen now.