Why is my “AppLifecycleState” “resumed” twice?

此生再无相见时 提交于 2019-12-11 04:47:42

问题


I am using call_number plugin to make a call from my app. I am tracking the AppLifecycleState to take actions. This is the order in which states are changing-

AppLifecycleState.inactive
AppLifecycleState.resumed
AppLifecycleState.inactive
AppLifecycleState.paused
AppLifecycleState.inactive
AppLifecycleState.resumed

Last 4-I understand the flow, but I am unable to understand why is state changing to resumed the first time. According to the documentation - "The application is visible and responding to user input." when it is in resumed state but when I press button, call is directly placed. I wonder if it is being done by the plugin in background but I don't see my app coming up even for a split second.

来源:https://stackoverflow.com/questions/55299988/why-is-my-applifecyclestate-resumed-twice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!