简体   繁体   English

收到调用android / ios phonegap后返回app状态

[英]Return to app state after receiving call android/ios phonegap

I have developed one phonegap/cordova(3.2) based mobile app for android and ios platforms. 我已经为android和ios平台开发了一款基于phonegap / cordova(3.2)的移动应用程序。 First screen of the app is login page. 该应用程序的第一个屏幕是登录页面。 Suppose we have logged into the app and we are in middle of the app then suddenly we receive a call from some number and we receive it. 假设我们已经登录到应用程序并且我们处于应用程序的中间,然后我们突然接到来自某个号码的电话,我们会收到它。 After call ends the app is getting automatically redirected to Login page.I want to keep the app where it was before receiving call. 通话结束后,应用程序将自动重定向到“登录”页面。我希望将应用程序保持在接收呼叫之前的位置。

Please provide me some solution to avoid this. 请给我一些解决方案以避免这种情况。

尝试在config.xml添加<preference name="exit-on-suspend" value="false"/>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM